欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

使用BAT命令关闭:135端口、139端口、445端口等

程序员文章站 2022-06-09 22:21:53
都知道135端口,139端口以及445端口.这三个端口容易被黑客或者病毒利用.所以我们今天就来教下大家如何关闭它. 太难的方法就不教给大家了.什么实用策略组之类的.新手感...

都知道135端口,139端口以及445端口.这三个端口容易被黑客或者病毒利用.所以我们今天就来教下大家如何关闭它.
太难的方法就不教给大家了.什么实用策略组之类的.新手感觉很麻烦.所以下面给大家来简单的教程

打开可以将下面的代码复制到文本里面然后保存为123.bat,然后运行就可以了

@echo off
gpupdate >nul
rem for client only
ipseccmd -w reg -p "hfut_secu" -o -x >nul
ipseccmd -w reg -p "hfut_secu" -x >nul
rem ipseccmd -w reg -p "hfut_secu" -r "block tcp/80" -f *+0:80:tcp -n block -x >nul
rem ipseccmd -w reg -p "hfut_secu" -r "block udp/1434" -f *+0:1434:udp -n block -x >nul
rem ipseccmd -w reg -p "hfut_secu" -r "block udp/137" -f *+0:137:udp -n block -x >nul
rem ipseccmd -w reg -p "hfut_secu" -r "block udp/138" -f *+0:138:udp -n block -x >nul
rem echo 禁止网上邻居的文件传输(只要去掉上述两行的 rem 即可生效!)
rem ipseccmd -w reg -p "hfut_secu" -r "block tcp/139" -f *+0:139:tcp -n block -x >nul 
rem echo 禁止netbios/smb服务和文件和打印机共享和samba(去掉rem生效)
ipseccmd -w reg -p "hfut_secu" -r "block tcp/135" -f *+0:135:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block udp/135" -f *+0:135:udp -n block -x >nul
echo 禁止location service服务和防止 dos 攻击…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/445" -f *+0:445:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block udp/445" -f *+0:445:udp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1025" -f *+0:1025:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block udp/139" -f *+0:139:udp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1068" -f *+0:1068:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5554" -f *+0:5554:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/9995" -f *+0:9995:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/9996" -f *+0:9996:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6129" -f *+0:6129:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block icmp/255" -f *+0:255:icmp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/43958" -f *+0:43958:tcp -n block -x >nul
echo 关闭流行危险端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/20034" -f *+0:20034:tcp -n block -x >nul
echo 关闭木马netbus pro开放的端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1092" -f *+0:1092:tcp -n block -x >nul
echo 关闭蠕虫lovegate开放的端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/3996" -f *+0:3996:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/4060" -f *+0:4060:tcp -n block -x >nul
echo 关闭木马remoteanything开放的端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/4590" -f *+0:4590:tcp -n block -x >nul
echo 关闭木马icq*开放的端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1080" -f *+0:1080:tcp -n block -x >nul
echo 禁止代理服务器扫描…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/113" -f *+0:113:tcp -n block -x >nul
echo 禁止authentication service服务…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/79" -f *+0:79:tcp -n block -x >nul
echo 禁止finger扫描…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block udp/53" -f *+0:53:udp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/53" -f *+0:53:tcp -n block -x >nul
echo 禁止区域传递(tcp),欺骗dns(udp)或隐藏其他的通信…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/707" -f *+0:707:tcp -n block -x >nul
echo 关闭nachi蠕虫病毒监听端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/808" -f *+0:808:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/23" -f *+0:23:tcp -n block -x >nul
echo 关闭telnet 和木马tiny telnet server监听端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/520" -f *+0:520:tcp -n block -x >nul
echo 关闭rip 端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1999" -f *+0:1999:tcp -n block -x >nul
echo 关闭木马程序backdoor的默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2001" -f *+0:2001:tcp -n block -x >nul
echo 关闭马程序黑洞2001的默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2023" -f *+0:2023:tcp -n block -x >nul
echo 关闭木马程序ripper的默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2583" -f *+0:2583:tcp -n block -x >nul
echo 关闭木马程序wincrash v2的默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/3389" -f *+0:3389:tcp -n block -x >nul
echo 关闭windows 的远程管理终端(远程桌面)监听端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/4444" -f *+0:4444:tcp -n block -x >nul
echo 关闭msblast冲击波蠕虫监听端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/4899" -f *+0:4899:tcp -n block -x >nul
echo 关闭远程控制软件(remote administrator)服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5800" -f *+0:5800:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5900" -f *+0:5900:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/8888" -f *+0:8888:tcp -n block -x >nul
echo 关闭远程控制软件vnc的两个默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6129" -f *+0:6129:tcp -n block -x >nul
echo 关闭dameware服务端默认监听端口(可变!)…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6267" -f *+0:6267:tcp -n block -x >nul
echo 关闭木马广外女生的默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/660" -f *+0:660:tcp -n block -x >nul
echo 关闭木马deepthroat v1.0 - 3.1默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6671" -f *+0:6671:tcp -n block -x >nul
echo 关闭木马indoctrination默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6939" -f *+0:6939:tcp -n block -x >nul
echo 关闭木马priority默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7306" -f *+0:7306:tcp -n block -x >nul
echo 关闭木马网络精灵默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7511" -f *+0:7511:tcp -n block -x >nul
echo 关闭木马聪明基因的默认连接端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7626" -f *+0:7626:tcp -n block -x >nul
echo 关闭木马冰河默认端口(注意可变!)…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/8011" -f *+0:8011:tcp -n block -x >nul
echo 关闭木马way2.4默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/9989" -f *+0:9989:tcp -n block -x >nul
echo 关闭木马inikiller默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/19191" -f *+0:19191:tcp -n block -x >nul
echo 关闭木马兰色火焰默认开放的telnet端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1029" -f *+0:1029:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/20168" -f *+0:20168:tcp -n block -x >nul
echo 关闭lovegate 蠕虫所开放的两个后门端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/23444" -f *+0:23444:tcp -n block -x >nul
echo 关闭木马网络公牛默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/27374" -f *+0:27374:tcp -n block -x >nul
echo 关闭木马sub7默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/30100" -f *+0:30100:tcp -n block -x >nul
echo 关闭木马netsphere默认的服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/31337" -f *+0:31337:tcp -n block -x >nul
echo 关闭木马bo2000默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/45576" -f *+0:45576:tcp -n block -x >nul
echo 关闭代理软件的控制端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/50766" -f *+0:50766:tcp -n block -x >nul
echo 关闭木马schwindler默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/61466" -f *+0:61466:tcp -n block -x >nul
echo 关闭木马telecommando默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/31338" -f *+0:31338:tcp -n block -x >nul
echo 关闭木马back orifice默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/8102" -f *+0:8102:tcp -n block -x >nul
echo 关闭木马网络神偷默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2000" -f *+0:2000:tcp -n block -x >nul
echo 关闭木马黑洞2000默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/31339" -f *+0:31339:tcp -n block -x >nul
echo 关闭木马netspy dk默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2001" -f *+0:2001:tcp -n block -x >nul
echo 关闭木马黑洞2001默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/31666" -f *+0:31666:tcp -n block -x >nul
echo 关闭木马bowhack默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/34324" -f *+0:34324:tcp -n block -x >nul
echo 关闭木马biggluck默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7306" -f *+0:7306:tcp -n block -x >nul
echo 关闭木马网络精灵3.0,netspy3.0默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/40412" -f *+0:40412:tcp -n block -x >nul
echo 关闭木马the spy默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/40421" -f *+0:40421:tcp -n block -x >nul
echo 关闭木马masters paradise默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/8011" -f *+0:8011:tcp -n block -x >nul
echo 关闭木马wry,赖小子,火凤凰默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/40422" -f *+0:40422:tcp -n block -x >nul
echo 关闭木马masters paradise 1.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/23444" -f *+0:23444:tcp -n block -x >nul
echo 关闭木马网络公牛,netbull默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/40423" -f *+0:40423:tcp -n block -x >nul
echo 关闭木马masters paradise 2.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/23445" -f *+0:23445:tcp -n block -x >nul
echo 关闭木马网络公牛,netbull默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/40426" -f *+0:40426:tcp -n block -x >nul
echo 关闭木马masters paradise 3.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/50505" -f *+0:50505:tcp -n block -x >nul
echo 关闭木马sockets de troie默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/27374" -f *+0:27374:tcp -n block -x >nul
echo 关闭木马sub seven 2.0+,77,东方魔眼默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/50766" -f *+0:50766:tcp -n block -x >nul
echo 关闭木马fore默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/53001" -f *+0:53001:tcp -n block -x >nul
echo 关闭木马remote windows shutdown默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/61466" -f *+0:61466:tcp -n block -x >nul
echo 关闭木马telecommando默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/121" -f *+0:121:tcp -n block -x >nul
echo 关闭木马bo jammerkillahv默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/666" -f *+0:666:tcp -n block -x >nul
echo 关闭木马satanz backdoor默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/65000" -f *+0:65000:tcp -n block -x >nul
echo 关闭木马devil默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1001" -f *+0:1001:tcp -n block -x >nul
echo 关闭木马silencer默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6400" -f *+0:6400:tcp -n block -x >nul
echo 关闭木马the thing默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1600" -f *+0:1600:tcp -n block -x >nul
echo 关闭木马shivka-burka默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/12346" -f *+0:12346:tcp -n block -x >nul
echo 关闭木马netbus 1.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1807" -f *+0:1807:tcp -n block -x >nul
echo 关闭木马spysender默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/20034" -f *+0:20034:tcp -n block -x >nul
echo 关闭木马netbus pro默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1981" -f *+0:1981:tcp -n block -x >nul
echo 关闭木马shockrave默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1243" -f *+0:1243:tcp -n block -x >nul
echo 关闭木马subseven默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1001" -f *+0:1001:tcp -n block -x >nul
echo 关闭木马webex默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/30100" -f *+0:30100:tcp -n block -x >nul
echo 关闭木马netsphere默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1011" -f *+0:1011:tcp -n block -x >nul
echo 关闭木马doly *默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1001" -f *+0:1001:tcp -n block -x >nul
echo 关闭木马silencer默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1170" -f *+0:1170:tcp -n block -x >nul
echo 关闭木马psyber stream server默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/20000" -f *+0:20000:tcp -n block -x >nul
echo 关闭木马millenium默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1234" -f *+0:1234:tcp -n block -x >nul
echo 关闭木马ultors *默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/65000" -f *+0:65000:tcp -n block -x >nul
echo 关闭木马devil 1.03默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1245" -f *+0:1245:tcp -n block -x >nul
echo 关闭木马voodoo doll默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7306" -f *+0:7306:tcp -n block -x >nul
echo 关闭木马netmonitor默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1492" -f *+0:1492:tcp -n block -x >nul
echo 关闭木马ftp99cmp默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1170" -f *+0:1170:tcp -n block -x >nul
echo 关闭木马streaming audio *默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1999" -f *+0:1999:tcp -n block -x >nul
echo 关闭木马backdoor默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/30303" -f *+0:30303:tcp -n block -x >nul
echo 关闭木马socket23默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2001" -f *+0:2001:tcp -n block -x >nul
echo 关闭木马* cow默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6969" -f *+0:6969:tcp -n block -x >nul
echo 关闭木马gatecrasher默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2023" -f *+0:2023:tcp -n block -x >nul
echo 关闭木马ripper默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/61466" -f *+0:61466:tcp -n block -x >nul
echo 关闭木马telecommando默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2115" -f *+0:2115:tcp -n block -x >nul
echo 关闭木马bugs默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/12076" -f *+0:12076:tcp -n block -x >nul
echo 关闭木马gjamer默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2140" -f *+0:2140:tcp -n block -x >nul
echo 关闭木马deep throat默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/4950" -f *+0:4950:tcp -n block -x >nul
echo 关闭木马icqtrojen默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2140" -f *+0:2140:tcp -n block -x >nul
echo 关闭木马the invasor默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/16969" -f *+0:16969:tcp -n block -x >nul
echo 关闭木马priotrity默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2801" -f *+0:2801:tcp -n block -x >nul
echo 关闭木马phineas phucker默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1245" -f *+0:1245:tcp -n block -x >nul
echo 关闭木马vodoo默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/30129" -f *+0:30129:tcp -n block -x >nul
echo 关闭木马masters paradise默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5742" -f *+0:5742:tcp -n block -x >nul
echo 关闭木马wincrash默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/3700" -f *+0:3700:tcp -n block -x >nul
echo 关闭木马portal of doom默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2583" -f *+0:2583:tcp -n block -x >nul
echo 关闭木马wincrash2默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/4092" -f *+0:4092:tcp -n block -x >nul
echo 关闭木马wincrash默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1033" -f *+0:1033:tcp -n block -x >nul
echo 关闭木马netspy默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/4590" -f *+0:4590:tcp -n block -x >nul
echo 关闭木马icq*默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1981" -f *+0:1981:tcp -n block -x >nul
echo 关闭木马shockrave默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5000" -f *+0:5000:tcp -n block -x >nul
echo 关闭木马sockets de troie默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/555" -f *+0:555:tcp -n block -x >nul
echo 关闭木马stealth spy默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5001" -f *+0:5001:tcp -n block -x >nul
echo 关闭木马sockets de troie 1.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2023" -f *+0:2023:tcp -n block -x >nul
echo 关闭木马pass ripper默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5321" -f *+0:5321:tcp -n block -x >nul
echo 关闭木马firehotcker默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/666" -f *+0:666:tcp -n block -x >nul
echo 关闭木马attack ftp默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5400" -f *+0:5400:tcp -n block -x >nul
echo 关闭木马blade runner默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/21554" -f *+0:21554:tcp -n block -x >nul
echo 关闭木马girlfriend默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5401" -f *+0:5401:tcp -n block -x >nul
echo 关闭木马blade runner 1.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/50766" -f *+0:50766:tcp -n block -x >nul
echo 关闭木马fore schwindler默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5402" -f *+0:5402:tcp -n block -x >nul
echo 关闭木马blade runner 2.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/34324" -f *+0:34324:tcp -n block -x >nul
echo 关闭木马tiny telnet server默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5569" -f *+0:5569:tcp -n block -x >nul
echo 关闭木马robo-hack默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/30999" -f *+0:30999:tcp -n block -x >nul
echo 关闭木马kuang默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6670" -f *+0:6670:tcp -n block -x >nul
echo 关闭木马deepthroat默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/11000" -f *+0:11000:tcp -n block -x >nul
echo 关闭木马senna spy *s默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6771" -f *+0:6771:tcp -n block -x >nul
echo 关闭木马deepthroat默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/23456" -f *+0:23456:tcp -n block -x >nul
echo 关闭木马whackjob默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6969" -f *+0:6969:tcp -n block -x >nul
echo 关闭木马gatecrasher默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/555" -f *+0:555:tcp -n block -x >nul
echo 关闭木马phase0默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6969" -f *+0:6969:tcp -n block -x >nul
echo 关闭木马priority默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5400" -f *+0:5400:tcp -n block -x >nul
echo 关闭木马blade runner默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7000" -f *+0:7000:tcp -n block -x >nul
echo 关闭木马remote grab默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/4950" -f *+0:4950:tcp -n block -x >nul
echo 关闭木马icq*默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7300" -f *+0:7300:tcp -n block -x >nul
echo 关闭木马netmonitor默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/9989" -f *+0:9989:tcp -n block -x >nul
echo 关闭木马inikiller默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7301" -f *+0:7301:tcp -n block -x >nul
echo 关闭木马netmonitor 1.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/9872" -f *+0:9872:tcp -n block -x >nul
echo 关闭木马portal of doom默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7306" -f *+0:7306:tcp -n block -x >nul
echo 关闭木马netmonitor 2.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/11223" -f *+0:11223:tcp -n block -x >nul
echo 关闭木马progenic *默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7307" -f *+0:7307:tcp -n block -x >nul
echo 关闭木马netmonitor 3.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/22222" -f *+0:22222:tcp -n block -x >nul
echo 关闭木马prosiak 0.47默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7308" -f *+0:7308:tcp -n block -x >nul
echo 关闭木马netmonitor 4.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/53001" -f *+0:53001:tcp -n block -x >nul
echo 关闭木马remote windows shutdown默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7789" -f *+0:7789:tcp -n block -x >nul
echo 关闭木马ickiller默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5569" -f *+0:5569:tcp -n block -x >nul
echo 关闭木马robohack默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/9872" -f *+0:9872:tcp -n block -x >nul
echo 关闭木马portal of doom默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -x >nul
gpupdate >nul
echo 正在设置 ip 筛选器……
rem if exist %temp%\ipfilter.reg del %temp%\ipfilter.reg
echo windows registry editor version 5.00>%temp%\ipfilter.reg
echo.>>%temp%\ipfilter.reg
echo [hkey_local_machine\system\controlset001\services\tcpip\parameters]>>%temp%\ipfilter.reg
echo "enablesecurityfilters"=dword:00000001>>%temp%\ipfilter.reg
echo.>>%temp%\ipfilter.reg>>%temp%\ipfilter.reg
echo [hkey_local_machine\system\controlset001\services\tcpip\parameters\interfaces\{f3bbaabc-03a5-4584-a7a0-0251fa38b8b1}]>>%temp%\ipfilter.reg
echo "tcpallowedports"=hex(07):32,00,31,00,00,00,38,00,30,00,00,00,34,00,30,00,30,\>>%temp%\ipfilter.reg
echo  00,30,00,00,00,00,00>>%temp%\ipfilter.reg
echo.>>%temp%\ipfilter.reg
echo [hkey_local_machine\system\currentcontrolset\services\tcpip\parameters]>>%temp%\ipfilter.reg
echo "enablesecurityfilters"=dword:00000001>>%temp%\ipfilter.reg
echo.>>%temp%\ipfilter.reg
echo [hkey_local_machine\system\currentcontrolset\services\tcpip\parameters\interfaces\{f3bbaabc-03a5-4584-a7a0-0251fa38b8b1}]>>%temp%\ipfilter.reg
echo "tcpallowedports"=hex(07):32,00,31,00,00,00,38,00,30,00,00,00,34,00,30,00,30,\>>%temp%\ipfilter.reg
echo  00,30,00,00,00,00,00>>%temp%\ipfilter.reg
echo.>>%temp%\ipfilter.reg
regedit /s %temp%\ipfilter.reg
del %temp%\ipfilter.reg
echo ip 筛选器设置成功!
echo.
echo.
echo  !
echo.
echo  不要关闭窗口,请按任意键进行 windows 服务器的过滤策略! 
echo.
pause>nul
rem for pc server
ipseccmd -w reg -p "hfut_secu" -o -x
ipseccmd -w reg -p "hfut_secu" -x
rem ipseccmd -w reg -p "hfut_secu" -r "block tcp/80" -f *+0:80:tcp -n block -x
rem ipseccmd -w reg -p "hfut_secu" -r "block udp/1434" -f *+0:1434:udp -n block -x
rem ipseccmd -w reg -p "hfut_secu" -r "block tcp/3389" -f *+0:3389:tcp -n block -x
ipseccmd -w reg -p "hfut_secu" -r "block tcp/445" -f *+0:445:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block udp/445" -f *+0:445:udp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1025" -f *+0:1025:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block udp/139" -f *+0:139:udp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1068" -f *+0:1068:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5554" -f *+0:5554:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/9995" -f *+0:9995:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/9996" -f *+0:9996:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6129" -f *+0:6129:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block icmp/255" -f *+0:255:icmp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/43958" -f *+0:43958:tcp -n block -x >nul
echo 关闭流行危险端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/20034" -f *+0:20034:tcp -n block -x >nul
echo 关闭木马netbus pro开放的端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1092" -f *+0:1092:tcp -n block -x >nul
echo 关闭蠕虫lovegate开放的端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/3996" -f *+0:3996:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/4060" -f *+0:4060:tcp -n block -x >nul
echo 关闭木马remoteanything开放的端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/4590" -f *+0:4590:tcp -n block -x >nul
echo 关闭木马icq*开放的端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1080" -f *+0:1080:tcp -n block -x >nul
echo 禁止代理服务器扫描…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/113" -f *+0:113:tcp -n block -x >nul
echo 禁止authentication service服务…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/79" -f *+0:79:tcp -n block -x >nul
echo 禁止finger扫描…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block udp/53" -f *+0:53:udp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/53" -f *+0:53:tcp -n block -x >nul
echo 禁止区域传递(tcp),欺骗dns(udp)或隐藏其他的通信…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/707" -f *+0:707:tcp -n block -x >nul
echo 关闭nachi蠕虫病毒监听端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/808" -f *+0:808:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/23" -f *+0:23:tcp -n block -x >nul
echo 关闭telnet 和木马tiny telnet server监听端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/520" -f *+0:520:tcp -n block -x >nul
echo 关闭rip 端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1999" -f *+0:1999:tcp -n block -x >nul
echo 关闭木马程序backdoor的默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2001" -f *+0:2001:tcp -n block -x >nul
echo 关闭马程序黑洞2001的默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2023" -f *+0:2023:tcp -n block -x >nul
echo 关闭木马程序ripper的默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2583" -f *+0:2583:tcp -n block -x >nul
echo 关闭木马程序wincrash v2的默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/3389" -f *+0:3389:tcp -n block -x >nul
echo 关闭windows 的远程管理终端(远程桌面)监听端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/4444" -f *+0:4444:tcp -n block -x >nul
echo 关闭msblast冲击波蠕虫监听端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/4899" -f *+0:4899:tcp -n block -x >nul
echo 关闭远程控制软件(remote administrator)服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5800" -f *+0:5800:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5900" -f *+0:5900:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/8888" -f *+0:8888:tcp -n block -x >nul
echo 关闭远程控制软件vnc的两个默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6129" -f *+0:6129:tcp -n block -x >nul
echo 关闭dameware服务端默认监听端口(可变!)…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6267" -f *+0:6267:tcp -n block -x >nul
echo 关闭木马广外女生的默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/660" -f *+0:660:tcp -n block -x >nul
echo 关闭木马deepthroat v1.0 - 3.1默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6671" -f *+0:6671:tcp -n block -x >nul
echo 关闭木马indoctrination默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6939" -f *+0:6939:tcp -n block -x >nul
echo 关闭木马priority默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7306" -f *+0:7306:tcp -n block -x >nul
echo 关闭木马网络精灵默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7511" -f *+0:7511:tcp -n block -x >nul
echo 关闭木马聪明基因的默认连接端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7626" -f *+0:7626:tcp -n block -x >nul
echo 关闭木马冰河默认端口(注意可变!)…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/8011" -f *+0:8011:tcp -n block -x >nul
echo 关闭木马way2.4默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/9989" -f *+0:9989:tcp -n block -x >nul
echo 关闭木马inikiller默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/19191" -f *+0:19191:tcp -n block -x >nul
echo 关闭木马兰色火焰默认开放的telnet端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1029" -f *+0:1029:tcp -n block -x >nul
ipseccmd -w reg -p "hfut_secu" -r "block tcp/20168" -f *+0:20168:tcp -n block -x >nul
echo 关闭lovegate 蠕虫所开放的两个后门端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/23444" -f *+0:23444:tcp -n block -x >nul
echo 关闭木马网络公牛默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/27374" -f *+0:27374:tcp -n block -x >nul
echo 关闭木马sub7默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/30100" -f *+0:30100:tcp -n block -x >nul
echo 关闭木马netsphere默认的服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/31337" -f *+0:31337:tcp -n block -x >nul
echo 关闭木马bo2000默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/45576" -f *+0:45576:tcp -n block -x >nul
echo 关闭代理软件的控制端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/50766" -f *+0:50766:tcp -n block -x >nul
echo 关闭木马schwindler默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/61466" -f *+0:61466:tcp -n block -x >nul
echo 关闭木马telecommando默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/31338" -f *+0:31338:tcp -n block -x >nul
echo 关闭木马back orifice默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/8102" -f *+0:8102:tcp -n block -x >nul
echo 关闭木马网络神偷默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2000" -f *+0:2000:tcp -n block -x >nul
echo 关闭木马黑洞2000默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/31339" -f *+0:31339:tcp -n block -x >nul
echo 关闭木马netspy dk默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2001" -f *+0:2001:tcp -n block -x >nul
echo 关闭木马黑洞2001默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/31666" -f *+0:31666:tcp -n block -x >nul
echo 关闭木马bowhack默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/34324" -f *+0:34324:tcp -n block -x >nul
echo 关闭木马biggluck默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7306" -f *+0:7306:tcp -n block -x >nul
echo 关闭木马网络精灵3.0,netspy3.0默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/40412" -f *+0:40412:tcp -n block -x >nul
echo 关闭木马the spy默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/40421" -f *+0:40421:tcp -n block -x >nul
echo 关闭木马masters paradise默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/8011" -f *+0:8011:tcp -n block -x >nul
echo 关闭木马wry,赖小子,火凤凰默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/40422" -f *+0:40422:tcp -n block -x >nul
echo 关闭木马masters paradise 1.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/23444" -f *+0:23444:tcp -n block -x >nul
echo 关闭木马网络公牛,netbull默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/40423" -f *+0:40423:tcp -n block -x >nul
echo 关闭木马masters paradise 2.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/23445" -f *+0:23445:tcp -n block -x >nul
echo 关闭木马网络公牛,netbull默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/40426" -f *+0:40426:tcp -n block -x >nul
echo 关闭木马masters paradise 3.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/50505" -f *+0:50505:tcp -n block -x >nul
echo 关闭木马sockets de troie默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/27374" -f *+0:27374:tcp -n block -x >nul
echo 关闭木马sub seven 2.0+,77,东方魔眼默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/50766" -f *+0:50766:tcp -n block -x >nul
echo 关闭木马fore默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/53001" -f *+0:53001:tcp -n block -x >nul
echo 关闭木马remote windows shutdown默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/61466" -f *+0:61466:tcp -n block -x >nul
echo 关闭木马telecommando默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/121" -f *+0:121:tcp -n block -x >nul
echo 关闭木马bo jammerkillahv默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/666" -f *+0:666:tcp -n block -x >nul
echo 关闭木马satanz backdoor默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/65000" -f *+0:65000:tcp -n block -x >nul
echo 关闭木马devil默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1001" -f *+0:1001:tcp -n block -x >nul
echo 关闭木马silencer默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6400" -f *+0:6400:tcp -n block -x >nul
echo 关闭木马the thing默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1600" -f *+0:1600:tcp -n block -x >nul
echo 关闭木马shivka-burka默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/12346" -f *+0:12346:tcp -n block -x >nul
echo 关闭木马netbus 1.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1807" -f *+0:1807:tcp -n block -x >nul
echo 关闭木马spysender默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/20034" -f *+0:20034:tcp -n block -x >nul
echo 关闭木马netbus pro默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1981" -f *+0:1981:tcp -n block -x >nul
echo 关闭木马shockrave默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1243" -f *+0:1243:tcp -n block -x >nul
echo 关闭木马subseven默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1001" -f *+0:1001:tcp -n block -x >nul
echo 关闭木马webex默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/30100" -f *+0:30100:tcp -n block -x >nul
echo 关闭木马netsphere默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1011" -f *+0:1011:tcp -n block -x >nul
echo 关闭木马doly *默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1001" -f *+0:1001:tcp -n block -x >nul
echo 关闭木马silencer默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1170" -f *+0:1170:tcp -n block -x >nul
echo 关闭木马psyber stream server默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/20000" -f *+0:20000:tcp -n block -x >nul
echo 关闭木马millenium默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1234" -f *+0:1234:tcp -n block -x >nul
echo 关闭木马ultors *默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/65000" -f *+0:65000:tcp -n block -x >nul
echo 关闭木马devil 1.03默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1245" -f *+0:1245:tcp -n block -x >nul
echo 关闭木马voodoo doll默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7306" -f *+0:7306:tcp -n block -x >nul
echo 关闭木马netmonitor默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1492" -f *+0:1492:tcp -n block -x >nul
echo 关闭木马ftp99cmp默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1170" -f *+0:1170:tcp -n block -x >nul
echo 关闭木马streaming audio *默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1999" -f *+0:1999:tcp -n block -x >nul
echo 关闭木马backdoor默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/30303" -f *+0:30303:tcp -n block -x >nul
echo 关闭木马socket23默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2001" -f *+0:2001:tcp -n block -x >nul
echo 关闭木马* cow默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6969" -f *+0:6969:tcp -n block -x >nul
echo 关闭木马gatecrasher默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2023" -f *+0:2023:tcp -n block -x >nul
echo 关闭木马ripper默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/61466" -f *+0:61466:tcp -n block -x >nul
echo 关闭木马telecommando默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2115" -f *+0:2115:tcp -n block -x >nul
echo 关闭木马bugs默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/12076" -f *+0:12076:tcp -n block -x >nul
echo 关闭木马gjamer默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2140" -f *+0:2140:tcp -n block -x >nul
echo 关闭木马deep throat默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/4950" -f *+0:4950:tcp -n block -x >nul
echo 关闭木马icqtrojen默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2140" -f *+0:2140:tcp -n block -x >nul
echo 关闭木马the invasor默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/16969" -f *+0:16969:tcp -n block -x >nul
echo 关闭木马priotrity默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2801" -f *+0:2801:tcp -n block -x >nul
echo 关闭木马phineas phucker默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1245" -f *+0:1245:tcp -n block -x >nul
echo 关闭木马vodoo默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/30129" -f *+0:30129:tcp -n block -x >nul
echo 关闭木马masters paradise默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5742" -f *+0:5742:tcp -n block -x >nul
echo 关闭木马wincrash默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/3700" -f *+0:3700:tcp -n block -x >nul
echo 关闭木马portal of doom默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2583" -f *+0:2583:tcp -n block -x >nul
echo 关闭木马wincrash2默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/4092" -f *+0:4092:tcp -n block -x >nul
echo 关闭木马wincrash默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1033" -f *+0:1033:tcp -n block -x >nul
echo 关闭木马netspy默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/4590" -f *+0:4590:tcp -n block -x >nul
echo 关闭木马icq*默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1981" -f *+0:1981:tcp -n block -x >nul
echo 关闭木马shockrave默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5000" -f *+0:5000:tcp -n block -x >nul
echo 关闭木马sockets de troie默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/555" -f *+0:555:tcp -n block -x >nul
echo 关闭木马stealth spy默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5001" -f *+0:5001:tcp -n block -x >nul
echo 关闭木马sockets de troie 1.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2023" -f *+0:2023:tcp -n block -x >nul
echo 关闭木马pass ripper默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5321" -f *+0:5321:tcp -n block -x >nul
echo 关闭木马firehotcker默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/666" -f *+0:666:tcp -n block -x >nul
echo 关闭木马attack ftp默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5400" -f *+0:5400:tcp -n block -x >nul
echo 关闭木马blade runner默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/21554" -f *+0:21554:tcp -n block -x >nul
echo 关闭木马girlfriend默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5401" -f *+0:5401:tcp -n block -x >nul
echo 关闭木马blade runner 1.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/50766" -f *+0:50766:tcp -n block -x >nul
echo 关闭木马fore schwindler默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5402" -f *+0:5402:tcp -n block -x >nul
echo 关闭木马blade runner 2.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/34324" -f *+0:34324:tcp -n block -x >nul
echo 关闭木马tiny telnet server默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5569" -f *+0:5569:tcp -n block -x >nul
echo 关闭木马robo-hack默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/30999" -f *+0:30999:tcp -n block -x >nul
echo 关闭木马kuang默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6670" -f *+0:6670:tcp -n block -x >nul
echo 关闭木马deepthroat默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/11000" -f *+0:11000:tcp -n block -x >nul
echo 关闭木马senna spy *s默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6771" -f *+0:6771:tcp -n block -x >nul
echo 关闭木马deepthroat默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/23456" -f *+0:23456:tcp -n block -x >nul
echo 关闭木马whackjob默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6969" -f *+0:6969:tcp -n block -x >nul
echo 关闭木马gatecrasher默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/555" -f *+0:555:tcp -n block -x >nul
echo 关闭木马phase0默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6969" -f *+0:6969:tcp -n block -x >nul
echo 关闭木马priority默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5400" -f *+0:5400:tcp -n block -x >nul
echo 关闭木马blade runner默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7000" -f *+0:7000:tcp -n block -x >nul
echo 关闭木马remote grab默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/4950" -f *+0:4950:tcp -n block -x >nul
echo 关闭木马icq*默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7300" -f *+0:7300:tcp -n block -x >nul
echo 关闭木马netmonitor默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/9989" -f *+0:9989:tcp -n block -x >nul
echo 关闭木马inikiller默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7301" -f *+0:7301:tcp -n block -x >nul
echo 关闭木马netmonitor 1.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/9872" -f *+0:9872:tcp -n block -x >nul
echo 关闭木马portal of doom默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7306" -f *+0:7306:tcp -n block -x >nul
echo 关闭木马netmonitor 2.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/11223" -f *+0:11223:tcp -n block -x >nul
echo 关闭木马progenic *默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7307" -f *+0:7307:tcp -n block -x >nul
echo 关闭木马netmonitor 3.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1999" -f *+0:1999:tcp -n block -x >nul
echo 关闭木马backdoor默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5800" -f *+0:5800:tcp -n block -x >nul
echo 关闭远程控制软件vnc默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5900" -f *+0:5900:tcp -n block -x >nul
echo 关闭远程控制软件vnc默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/22222" -f *+0:22222:tcp -n block -x >nul
echo 关闭木马prosiak 0.47默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7626" -f *+0:7626:tcp -n block -x >nul
echo 关闭木马冰河默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/4444" -f *+0:4444:tcp -n block -x >nul
echo 关闭木马msblast默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7308" -f *+0:7308:tcp -n block -x >nul
echo 关闭木马netmonitor 4.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6129" -f *+0:6129:tcp -n block -x >nul
echo 关闭远程控制软件(dameware nt utilities)默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2023" -f *+0:2023:tcp -n block -x >nul
echo 关闭木马ripper默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1245" -f *+0:1245:tcp -n block -x >nul
echo 关闭木马voodoo doll默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/121" -f *+0:121:tcp -n block -x >nul
echo 关闭木马bo jammerkillahv默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/456" -f *+0:456:tcp -n block -x >nul
echo 关闭木马hackers paradise默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/555" -f *+0:555:tcp -n block -x >nul
echo 关闭木马stealth spy默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/666" -f *+0:666:tcp -n block -x >nul
echo 关闭木马satanz backdoor默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1001" -f *+0:1001:tcp -n block -x >nul
echo 关闭木马silencer默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/1033" -f *+0:1033:tcp -n block -x >nul
echo 关闭木马netspy默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7000" -f *+0:7000:tcp -n block -x >nul
echo 关闭木马remote grab默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7300 " -f *+0:7300:tcp -n block -x >nul
echo 关闭木马netmonitor默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/23456 " -f *+0:23456:tcp -n block -x >nul
echo 关闭木马ugly ftp默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/23456 " -f *+0:23456:tcp -n block -x >nul
echo 关闭木马ugly ftp默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/30100 " -f *+0:30100:tcp -n block -x >nul
echo 关闭木马netsphere默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/9872" -f *+0:9872:tcp -n block -x >nul
echo 关闭木马portal of doom默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/9899" -f *+0:9899:tcp -n block -x >nul
echo 关闭木马ini-killer默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/50505" -f *+0:50505:tcp -n block -x >nul
echo 关闭木马sockets de troie默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/6939" -f *+0:6939:tcp -n block -x >nul
echo 关闭木马indoctrination默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/11000" -f *+0:11000:tcp -n block -x >nul
echo 关闭木马senna spy默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/12223" -f *+0:12223:tcp -n block -x >nul
echo 关闭木马hack?99 keylogger默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/12362" -f *+0:12362:tcp -n block -x >nul
echo 关闭木马whack-a-mole 1.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/20000" -f *+0:20000:tcp -n block -x >nul
echo 关闭木马millenium默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2583" -f *+0:2583:tcp -n block -x >nul
echo 关闭木马wincrash v2默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/53001" -f *+0:53001:tcp -n block -x >nul
echo 关闭木马remote windows shutdown默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/7789" -f *+0:7789:tcp -n block -x >nul
echo 关闭木马ickiller默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/40426" -f *+0:40426:tcp -n block -x >nul
echo 关闭木马masters paradise 3.x默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/5569" -f *+0:5569:tcp -n block -x >nul
echo 关闭木马robohack默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/8000" -f *+0:8000:tcp -n block -x >nul
echo 关闭木马huigezi默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/9872" -f *+0:9872:tcp -n block -x >nul
echo 关闭木马portal of doom默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2005" -f *+0:2005:tcp -n block -x >nul
echo 关闭木马黑洞2005默认服务端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/2000" -f *+0:2000:tcp -n block -x >nul
echo 关闭彩虹桥1.2默认端口…………ok!
ipseccmd -w reg -p "hfut_secu" -r "block tcp/9999" -f *+0:9999:tcp -n block -x >nul
echo 关闭huigezi映射默认端口…………ok!
ipseccmd -w reg -p "hfut_secu" -x >nul
gpupdate >nul
echo.
echo                  
echo. 
echo 请您按任意键退出!
pause>nul

在 windows 下关闭135/139/445端口的图文方法可以参考这篇文章:

怎么看关闭139端口是否成功
1、打开开始菜单---运行---输入cmd 点击确定(也可以直接打开开始菜单---附件-----命令提示符)
2、输入netstat -an 回车键,会在输入完命令后下面看到消失了的139端口,没有关闭前大家也可以使用此命令看是否139端口打开着

使用BAT命令关闭:135端口、139端口、445端口等

相关标签: BAT命令关闭端口