As you know i am preparing for http://nandncomputers.blogspot.com /" target="_blank">CEH (Certified Ethical Hacker) from several months.
Yesterday i found something interesting when reading the topics of Trojans from my CEH study material. Yeah you are right Trojans are backdoor programs that create a connection with the help of open ports many of us are suffering from Trojans.they are one of the dangerous weapon for hackers.
If a hacker install a Trojan on your computer then he can do anything with your computer while sitting to thousands of km far away from your computer.After a successful installation of Trojan hacker can use your computer as a Zombie computer and can do any kind of illegal work with your IP address Or even can able to delete your valuable data.
Today i will show you how to be keep yourself safe by closing open ports.
Ports are the Application specific End points which provide connections in a operating system.
when you are connected to internet each network process use a different port.
for yahoo messenger uses a different port,your browser uses a different port to establish a connection with network.
As we discussed about Trojans earlier,when a hacker installs a Trojan on your computer..he need a open port to create a connection from your computer to his computer.To keep our self save from this kind of attacks we need to close our open ports.
I searched a lot in my CEH study material on "how to close a open port" but didn't succeed..then after decided to do it myself.
After 4 hours of consistent hard work i found a way by which we can able to close open ports..
To close open Ports..Here's The Procedure..
- Go To Start And Then Run.
- Type "netsh firewall delete portopening TCP PORTNUMBER" without Quotes and PORTNUMBER is the Number of your port which you want to close.
if you want to close PORTNUMBER 8080 Then the command to close PORT 8080 is.
netsh firewall delete portopening TCP 8080.
- Now Press enter and Your are done..
I also try to created VB Script and .bat file for both commands.
Vbs Script to close open ports. http://nandncomputers.blogspot.com /" target="_blank">.Just copy and paste below coding to notepad file and save as PortCloser.vbs
set ss = createobject("wscript.shell")
set ws = wscript
PORT = InputBox("Enter the port you wish to close:")
ss.sendkeys "firewall delete portopening TCP " & PORT
.BAT Script to close open ports..Just copy and paste below coding to notepad file and save as
title Port Closer
echo Port Closer
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.
For any Queries regarding this..put your valuable comments..