导读:操作步骤/方法1请将以下代码存为关闭端口.bat,以管理员身份运行就可以了,运行前记得打开防火墙双击使用。2%1mshtavbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c%~s0::","","runas",1...
操作步骤/方法
1
请将以下代码存为关闭端口.bat,以管理员身份运行就可以了,运行前记得打开防火墙双击使用。
2
%1mshtavbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c%~s0::","","runas",1)(window.close)&&exit
3
@echooff
4
color1f
5
title关闭135137138139445端口
6
echo.
7
echo.
8
echo.
9
echo正在关闭135端口请稍候…
10
netshadvfirewallfirewalladdrulename="Disableport135-TCP"dir=inaction=blockprotocol=TCPlocalport=135
11
echo.
12
netshadvfirewallfirewalladdrulename="Disableport135-UDP"dir=inaction=blockprotocol=UDPlocalport=135
13
echo.
14
echo正在关闭137端口请稍候…
15
netshadvfirewallfirewalladdrulename="Disableport137-TCP"dir=inaction=blockprotocol=TCPlocalport=137
16
echo.
17
netshadvfirewallfirewalladdrulename="Disableport137-UDP"dir=inaction=blockprotocol=UDPlocalport=137
18
echo.
19
echo正在关闭138端口请稍候…
20
netshadvfirewallfirewalladdrulename="Disableport138-TCP"dir=inaction=blockprotocol=TCPlocalport=138
21
echo.
22
netshadvfirewallfirewalladdrulename="Disableport138-UDP"dir=inaction=blockprotocol=UDPlocalport=138
23
echo.
24
echo正在关闭139端口请稍候…
25
netshadvfirewallfirewalladdrulename="Disableport139-TCP"dir=inaction=blockprotocol=TCPlocalport=139
26
echo.
27
netshadvfirewallfirewalladdrulename="Disableport139-UDP"dir=inaction=blockprotocol=UDPlocalport=139
28
echo.
29
echo正在关闭445端口请稍候…
30
netshadvfirewallfirewalladdrulename="Disableport445-TCP"dir=inaction=blockprotocol=TCPlocalport=445
31
echo.
32
netshadvfirewallfirewalladdrulename="Disableport445-UDP"dir=inaction=blockprotocol=UDPlocalport=445
33
echo.
34
echo按任意键退出
35
pause>nul
END
以上就是小编为大家介绍的勒索病毒-批处理关闭135 137 445等端口的全部内容,如果大家还对相关的内容感兴趣,请持续关注上海建站网!
标签:
内容声明:网站所展示的内容均由第三方用户投稿提供,内容的真实性、准确性和合法性均由发布用户负责。上海建站网对此不承担任何相关连带责任。上海建站网遵循相关法律法规严格审核相关关内容,如您发现页面有任何违法或侵权信息,欢迎向网站举报并提供有效线索,我们将认真核查、及时处理。感谢您的参与和支持!