2024-11-26 08:10:32
直接下载一个“关闭445端口工具”的软件,不用处理口令即可关闭端口
内容拓展:
一、一款国外的软件,可以一键关闭445/135/137/138/139端口,经测试win7可以一键关闭,比起手动操作,用这款关闭445端口工具就简单多了,用这个把137 138 139 445端口关闭了,对勒索病毒及时预防!
二、WIN732位下 打开时会出现个错误窗口,关掉就好 然后出来界面,如果提示红色之类的 就是端口打开着,点关闭就好!【右边竖着的窗口会显示本机打开的端口,如果本机开启了135 445等端口会出现在右侧列表里的】。
三、WIN10系统下没测试,应该也可以用,我的是WIN7,SP1,32位精简的系统,是可用的 XP下也是可以用的。
2024-11-26 08:24:21
不好意思 可能是我没有表达清楚 我要的是win7系统下的批处理命令 运行bat文件关闭上述几个网络端口
2024-11-26 08:26:23
从网上找到的,确实可以用
%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,137,138,139
echo.
netsh advfirewall firewall add rule name = "Disable port 135 - UDP" dir = in action = block protocol = UDP localport = 135,137,138,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
把这个代码复制到记事本里面另存为 禁用.bat 运行就行了。