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