Disable the batch processing file for dangerous ports

Source: Internet
Author: User


The Code is as follows:

@ Echo off

Gpupdate> nul

Rem For Client only

Ipconfig-w REG-p "HFUT_SECU"-o-x> nul

Ipconfig-w REG-p "HFUT_SECU"-x> nul

Rem ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/80"-f * + 0: 80: TCP-n BLOCK-x> nul

Rem ipconfig-w REG-p "HFUT_SECU"-r "Block UDP/1434"-f * + 0: 1434: UDP-n BLOCK-x> nul

Rem ipconfig-w REG-p "HFUT_SECU"-r "Block UDP/137"-f * + 0: 137: UDP-n BLOCK-x> nul

Rem ipconfig-w REG-p "HFUT_SECU"-r "Block UDP/138"-f * + 0: 138: UDP-n BLOCK-x> nul

Rem echo disables file transmission by network neighbors (remove the above two lines of REM to take effect !)

Rem ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/139"-f * + 0: 139: TCP-n BLOCK-x> nul

Rem echo disables NetBIOS/SMB service and file and printer sharing and SAMBA (remove REM to take effect)

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/135"-f * + 0: 135: TCP-n BLOCK-x> nul

Ipconfig-w REG-p "HFUT_SECU"-r "Block UDP/135"-f * + 0: 135: UDP-n BLOCK-x> nul

Echo disables Location Service services and prevents Dos attacks ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/445"-f * + 0: 445: TCP-n BLOCK-x> nul

Ipconfig-w REG-p "HFUT_SECU"-r "Block UDP/445"-f * + 0: 445: UDP-n BLOCK-x> nul

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/1025"-f * + 0: 1025: TCP-n BLOCK-x> nul

Ipconfig-w REG-p "HFUT_SECU"-r "Block UDP/139"-f * + 0: 139: UDP-n BLOCK-x> nul

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/1068"-f * + 0: 1068: TCP-n BLOCK-x> nul

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/5554"-f * + 0: 5554: TCP-n BLOCK-x> nul

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/9995"-f * + 0: 9995: TCP-n BLOCK-x> nul

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/9996"-f * + 0: 9996: TCP-n BLOCK-x> nul

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/6129"-f * + 0: 6129: TCP-n BLOCK-x> nul

Ipconfig-w REG-p "HFUT_SECU"-r "Block ICMP/255"-f * + 0: 255: ICMP-n BLOCK-x> nul

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/43958"-f * + 0: 43958: TCP-n BLOCK-x> nul

Echo closes popular dangerous ports ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/20034"-f * + 0: 20034: TCP-n BLOCK-x> nul

Echo closes the port opened by the trojan NetBus Pro ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/1092"-f * + 0: 1092: TCP-n BLOCK-x> nul

Echo closes the LoveGate open port ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/3996"-f * + 0: 3996: TCP-n BLOCK-x> nul

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/4060"-f * + 0: 4060: TCP-n BLOCK-x> nul

Echo closes the port opened by the trojan RemoteAnything ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/4590"-f * + 0: 4590: TCP-n BLOCK-x> nul

Echo closes the port opened by the trojan ICQTrojan ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/1080"-f * + 0: 1080: TCP-n BLOCK-x> nul

Echo disables Proxy Server scanning ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/113"-f * + 0: 113: TCP-n BLOCK-x> nul

Echo disables the Authentication Service ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/79"-f * + 0: 79: TCP-n BLOCK-x> nul

Echo disables Finger scanning ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block UDP/53"-f * + 0: 53: UDP-n BLOCK-x> nul

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/53"-f * + 0: 53: TCP-n BLOCK-x> nul

Echo prohibits region transfer (TCP), spoofing DNS (UDP) or hiding other communications ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/707"-f * + 0: 707: TCP-n BLOCK-x> nul

Echo closes the nachi Worm listening port ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/808"-f * + 0: 808: TCP-n BLOCK-x> nul

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/23"-f * + 0: 23: TCP-n BLOCK-x> nul

Echo closes Telnet and Tiny Telnet Server listening ports for Trojans ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/520"-f * + 0: 520: TCP-n BLOCK-x> nul

Echo closes the Rip port ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/1999"-f * + 0: 1999: TCP-n BLOCK-x> nul

Echo closes the default BackDoor service port of the Trojan program ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/2001"-f * + 0: 2001: TCP-n BLOCK-x> nul

Echo closes the default service port of Trojan black hole 2001 ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/2023"-f * + 0: 2023: TCP-n BLOCK-x> nul

Echo closes the default service port of the Trojan Ripper ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/2583"-f * + 0: 2583: TCP-n BLOCK-x> nul

Echo closes the default service port of the Trojan program Wincrash v2 ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/3389"-f * + 0: 3389: TCP-n BLOCK-x> nul

Echo closes the Windows Remote Management Terminal (Remote Desktop) listening port ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/4444"-f * + 0: 4444: TCP-n BLOCK-x> nul

Echo closes the msblast wave worm listening port ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/4899"-f * + 0: 4899: TCP-n BLOCK-x> nul

Echo closes the remote control software (remote administrator) Service port ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/5800"-f * + 0: 5800: TCP-n BLOCK-x> nul

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/5900"-f * + 0: 5900: TCP-n BLOCK-x> nul

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/8888"-f * + 0: 8888: TCP-n BLOCK-x> nul

Echo closes two default service ports of the remote control software VNC ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/6129"-f * + 0: 6129: TCP-n BLOCK-x> nul

Echo closes the default listening port of the Dameware server (variable !)............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/6267"-f * + 0: 6267: TCP-n BLOCK-x> nul

Echo closes the default service port of the Trojan girl ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/660"-f * + 0: 660: TCP-n BLOCK-x> nul

Echo disable the trojan DeepThroat v1.0-3.1 default service port ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/6671"-f * + 0: 6671: TCP-n BLOCK-x> nul

Echo: Disable the trojan Indoctrination default service port ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/6939"-f * + 0: 6939: TCP-n BLOCK-x> nul

Echo: Disable the trojan PRIORITY default service port ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/7306"-f * + 0: 7306: TCP-n BLOCK-x> nul

Echo closes the default service port of the Trojan network genie ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/7511"-f * + 0: 7511: TCP-n BLOCK-x> nul

Echo closes the default connection port of the Trojan Smart gene ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/7626"-f * + 0: 7626: TCP-n BLOCK-x> nul

Echo: Disable the default port of Mama glacier (note that it can be changed !)............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/8011"-f * + 0: 8011: TCP-n BLOCK-x> nul

Echo disable the default service port of Trojan WAY2.4 ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/9989"-f * + 0: 9989: TCP-n BLOCK-x> nul

Echo closes the default service port of Trojan InIkiller ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/19191"-f * + 0: 19191: TCP-n BLOCK-x> nul

Echo closes the default telnet port opened by Trojan blue flame ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/1029"-f * + 0: 1029: TCP-n BLOCK-x> nul

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/20168"-f * + 0: 20168: TCP-n BLOCK-x> nul

Echo closes two Backdoor Ports opened by the lovegate worm ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/23444"-f * + 0: 23444: TCP-n BLOCK-x> nul

Echo closes the default service port of the Trojan network bull ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/27374"-f * + 0: 27374: TCP-n BLOCK-x> nul

Echo: Disable the default service port of Trojan SUB7 ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/30100"-f * + 0: 30100: TCP-n BLOCK-x> nul

Echo closes the default service port of Trojan NetSphere ............ OK!

Ipconfig-w REG-p "HFUT_SECU"-r "Block TCP/31337"-f * + 0: 31337: TCP-n BLOCK-x> nul

Echo disable Trojan BO2000

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.