Trojans from Hackers

 Today i will show you how to keep yourself safe by closing open ports.
Ports are Application Specific End Points which provide connections in an operating system.

When you are connected to the internet each network process uses a different port e.g yahoo messenger uses a different port, the browser uses a different port to establish a connection with network.
 

For a hacker to install a Trojan on your computer, he needs an open port to create a connection from your computer to his computer, therefor to keep our self save from this kind of attack we need to close our open ports.
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..
  U can also try to created a vbs 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("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}"


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

@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

No comments:

Post a Comment