Knowledge Bits

Disable SMB server on Windows host

Useful when doing a relay attack and forwarding the SMB port of ntlmrelayx.py

sc stop netlogon
sc stop lanmanserver
sc config lanmanserver start= disabled
sc stop lanmanworkstation
sc config lanmanworkstation start= disabled

shutdown /r /t 0 /f

Last updated

Was this helpful?