`
suxing
  • 浏览: 202557 次
  • 性别: Icon_minigender_1
  • 来自: 遵义
社区版块
存档分类
最新评论

禁用445等端口的脚本

 
阅读更多

netsh advfirewall firewall add rule name=deny445 dir=in protocol=tcp localport=445,137,139,135 action=block

netsh advfirewall firewall add rule name=deny138 dir=in protocol=udp localport=138 action=block

reg add HKLM\System\CurrentControlSet\Services\NetBT\Parameters /v SMBDeviceEnabled /t REG_DWORD /d 0 /f

sc stop Browser

sc config Browser start= disabled

sc stop LanmanServer

sc config LanmanServer start= disabled

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics