%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
把这段代码 保存成 .bat 然后运行就可以了
:%记得打开时关闭防火墙 关闭360 :%记得打开时关闭防火墙 关闭360%
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/181185.html原文链接:https://javaforall.cn