预防onion比特币勒索病毒 一键快速关闭135,445端口

da8b7274a1c839e095a19ef609c14a2c.jpgdc9e68cf360a1885e400167e158766c4.jpg

RT就是一段代码,自己设置,新建一个文本将下列代码复制粘贴到文本中,然后保存重命名为《onion.bat》然后保存,右键管理员身份运行即可。

%1 mshta vbscript:CreateObject(“Shell.Application”).ShellExecute(“cmd.exe”,”/c %~s0 ::”,””,”runas”,1)(window.close)&&exit
@echo off
color 1f
title 关闭135 445 端口
echo.
echo.
echo.
echo 正在关闭135端口 请稍候…
netsh advfirewall firewall add rule name = “Disable port 135 - TCP” dir = in action = block protocol = TCP localport = 135
echo.
netsh advfirewall firewall add rule name = “Disable port 135 - UDP” dir = in action = block protocol = UDP localport = 135
echo.
echo 正在关闭445端口 请稍候…
netsh advfirewall firewall add rule name = “Disable port 445 - TCP” dir = in action = block protocol = TCP localport = 445
echo.
netsh advfirewall firewall add rule name = “Disable port 445 - UDP” dir = in action = block protocol = UDP localport = 445
echo.
echo 按任意键退出
pause>nul