Sunday, 11 March 2012

How To :: Close System Ports

Hello Friends, Now we are going to discuss about how we can close the ports which are open right now on our computer and even no service is running on these ports...This method will work only on windows system...Lets have a tutorial and perform following steps to close ports :-
It is actually quite simply, all you need to do is, Click on start button and then click on run, type cmd and press enter...Now in cmd, type following command and press enter.

netsh firewall delete portopening TCP portnumber
in portnumber, type a number that you wants to close..
There is one another method by which we can close the opening ports, all you need to do is, copy following script and paste it into notepad file
set ss = createobject("wscript.shell")
set ws = wscript
dim PORT
PORT = InputBox("Enter the port you wish to close:")
ss.run "netsh.exe"
ws.sleep 1000
ss.sendkeys "firewall delete portopening TCP " & PORT
ss.sendkeys "{enter}"
ws.sleep 500
'ss.sendkeys "exit"
'ss.sendkeys "{enter}"
Now save this notepad file as .vbs extension (like ports.vbs)...execute it,  enter port number that you want to close and click ok..Game Over!!!
This method we also can perform through bat file....copy the following code into notepad file@echo off
title Port Closer
echo Port Closer
echo.
set /p port=Type the port number you wish to close here:
netsh firewall delete portopening TCP %port%
msg /w * Port %port% has been closed.
exit
Now save this notepad file as .bat extension (like starthack.bat)...execute this batch file and enter a port number which you want to close, press enter and Game Over!!!!!!!!

No comments:

Post a Comment