One-click to close the batch of dangerous port (prevent hacker intrusion) _dos/bat

Source: Internet
Author: User

One-click to close dangerous port (prevent hacker intrusion)
Dangerous, port, hacker
Copy all of the following
Save the suffix with Notepad
Bat
Press prompt to copy from below @

Copy Code code as follows:

@echo off
Color 1f
Title close a common dangerous port
Echo.
Echo.
echo This batch is used to start the firewall of the XP system and to close common dangerous ports
Echo.
echo Please verify that you are using an XP system and that no other firewalls are installed
Echo.
Echo to avoid conflict with the firewall of the XP system
Echo.
Echo.
Echo.
Pause
Cls
Echo is starting the firewall please wait ...
sc config sharedaccess start= auto > nul
net start sharedaccess > nul
Echo Firewall has started successfully
Echo.
Echo is shutting down common dangerous ports please wait ...
Echo.
Echo is shutting down port 135 please wait ...
netsh firewall set portopening protocol = ALL Port = 135 Name = 135 Mode = DISABLE Scope = ALL Profiles = All
Echo is shutting down Port 137 please wait ...
netsh firewall set portopening protocol = ALL Port = 137 Name = 137 Mode = DISABLE Scope = ALL Profiles = All
Echo is shutting down Port 138 please wait ...
netsh firewall set portopening protocol = ALL Port = 138 Name = 138 Mode = DISABLE scope = ALL Profiles = All
Echo is shutting down port 139 please wait ...
netsh firewall set portopening protocol = ALL Port = 139 Name = 139 Mode = DISABLE Scope = ALL Profiles = All
Echo is shutting down port 445 please wait ...
netsh firewall set portopening protocol = ALL Port = 445 name = 445 Mode = DISABLE Scope = ALL Profiles = All
Echo is shutting down port 593 please wait ...
netsh firewall set portopening protocol = TCP Port = 593 Name = 593 Mode = DISABLE Scope = ALL Profiles = All
Echo is shutting down port 1025 please wait ...
netsh firewall set portopening protocol = TCP Port = 1025 Name = 1024 Mode = DISABLE Scope = ALL Profiles = All
Echo is shutting down port 3389 please wait ...
netsh firewall set portopening protocol = ALL Port = 3389 Name = 3389 Mode = DISABLE Scope = ALL Profiles = All
Cls
Echo.
Echo.
Echo.
Echo's common danger port is closed.
Echo.
Echo.
Echo.
Echo.
Echo
Echo.
Echo.
Echo.
echo presses any key to exit
Pause>nul

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.