勒索病毒-批处理关闭135 137 445等端口

 时间:2026-02-14 12:14:07

1、请将以下代码存为 关闭端口.bat ,以管理员身份运行就可以了,运行前记得打开防火墙双击使用。 

2、%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit

@echo off 

color 1f 

title 关闭135 137 138 139 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 正在关闭137端口 请稍候… 

netsh advfirewall firewall add rule name = "Disable port 137 - TCP" dir = in action = block protocol = TCP localport = 137

echo. 

netsh advfirewall firewall add rule name = "Disable port 137 - UDP" dir = in action = block protocol = UDP localport = 137

echo. 

echo 正在关闭138端口 请稍候… 

netsh advfirewall firewall add rule name = "Disable port 138 - TCP" dir = in action = block protocol = TCP localport = 138

echo. 

netsh advfirewall firewall add rule name = "Disable port 138 - UDP" dir = in action = block protocol = UDP localport = 138

echo. 

echo 正在关闭139端口 请稍候… 

netsh advfirewall firewall add rule name = "Disable port 139 - TCP" dir = in action = block protocol = TCP localport = 139

echo. 

netsh advfirewall firewall add rule name = "Disable port 139 - UDP" dir = in action = block protocol = UDP localport = 139

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

  • win10快速关闭135 137 138 139 445端口
  • win7系统怎么启动服务TrkWks
  • delphi的toolbar使用技巧
  • oracle字符集设置
  • vbnet中多线程委托案列(跨线程操作控件)
  • 热门搜索
    热带鱼怎么养 qq闺蜜关系怎么弄 左边腰疼是怎么回事 文玩核桃怎么盘 荞麦面怎么吃 嘴唇发紫是怎么回事 宝宝消化不良怎么调理 脚趾甲长到肉里怎么办 口臭怎么治疗 移动怎么查话费