一键关闭危险端口(防止黑客入侵)
危险, 端口, 黑客
讲以下内容全部复制
用记事本保存后缀为
bat
按提示进行 从下面@开始复制
@echo off
color 1f
title 关闭常见的危险端口
echo.
echo.
echo 本批处理用于启动xp系统的防火墙并关闭常见的危险端口
echo.
echo 请确认您正在使用的是xp系统 并且未安装其他防火墙
echo.
echo 以避免与xp系统的防火墙发生冲突
echo.
echo.
echo.
pause
cls
echo 正在启动防火墙 请稍候…
sc config sharedaccess start= auto > nul
net start sharedaccess > nul
echo 防火墙已经成功启动
echo.
echo 正在关闭常见的危险端口 请稍候…
echo.
echo 正在关闭135端口 请稍候…
netsh firewall set portopening protocol = all port = 135 name = 135 mode = disable scope = all profile = all
echo 正在关闭137端口 请稍候…
netsh firewall set portopening protocol = all port = 137 name = 137 mode = disable scope = all profile = all
echo 正在关闭138端口 请稍候…
netsh firewall set portopening protocol = all port = 138 name = 138 mode = disable scope = all profile = all
echo 正在关闭139端口 请稍候…
netsh firewall set portopening protocol = all port = 139 name = 139 mode = disable scope = all profile = all
echo 正在关闭445端口 请稍候…
netsh firewall set portopening protocol = all port = 445 name = 445 mode = disable scope = all profile = all
echo 正在关闭593端口 请稍候…
netsh firewall set portopening protocol = tcp port = 593 name = 593 mode = disable scope = all profile = all
echo 正在关闭1025端口 请稍候…
netsh firewall set portopening protocol = tcp port = 1025 name = 1024 mode = disable scope = all profile = all
echo 正在关闭3389端口 请稍候…
netsh firewall set portopening protocol = all port = 3389 name = 3389 mode = disable scope = all profile = all
cls
echo.
echo.
echo.
echo 常见的危险端口已经关闭
echo.
echo.
echo.
echo.
echo
echo.
echo.
echo.
echo 按任意键退出
pause>nul
如对本文有疑问,
点击进行留言回复!!
相关文章:
-
-
批处理ren重命名的方式
批处理之ren命令-可批量修改文件名1.批处理批量修改文件后缀名(假设我需要把一个文件夹中的很多txt文件改为sql文件): 1)在需要被处理的文件的文件夹里先...
[阅读全文]
-
-
-
-
-
-
-
-
-
网友评论