How To Close Open Ports

As you know i am preparing for 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..
  1. Go To Start And Then Run.
  2. 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.
  3. 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..Just copy and paste below coding to notepad file and save as PortCloser.vbs

set ss = createobject("")
set ws = wscript
dim PORT
PORT = InputBox("Enter the port you wish to close:") "netsh.exe"
ws.sleep 1000
ss.sendkeys "firewall delete portopening TCP " & PORT
ss.sendkeys "{enter}"
ws.sleep 500
'ss.sendkeys "exit"
'ss.sendkeys "{enter}"

.BAT Script to close open ports..Just copy and paste below coding to notepad file and save as

@echo off
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..

{ 7 comments... read them below or add one }

Anonymous said...

This is my first time go to see at here and i am
actually pleassant to read all at single place.

My blog basyx vl601 review

Anonymous said...

Hey! I couldn't do one lousy push-up once i started instruction both! Good to hear which i wasn't by itself

My page Build muscle mass program

Anonymous said...

Really Excellent one. I assume Even Oranges helps in enamel
Dentist in Houston

Here is my homepage; dental pro 7 ingredients []

Anonymous said...

Amen to that. Reeves. Grimek. Park.

Take a look at my web-site ... six pack shortcuts workout log pdf
:: ::

Anonymous said...

I acquired ninety nine problems but Tim Tebow
ain't a single...

Also visit my webpage :: best otc weight loss pill at walmart

Anonymous said...

You are doing realize that "immigrant ghettos" are fashioned by folks that seek refuge from their
own country not by choise,? but due to the fact their lives is both completely ruined, or
they can not securely practice there whatsoever anymore?. .
Now consider concerning this a moment... you're middle aged from an region which has gone down for the crappers and thus have practically no official education in any respect. How are you currently going to endure even when you discover a safehaven within a ghetto?

my blog ... 60 minute stamina review

Anonymous said...

Nice publish Richard (and Martin)!

my web page ... precision nutrition lean eating

Post a Comment