Tuesday, May 1, 2012

NMAP Port Scanner



Nmap is a tool that has the ability to detect hosts, scanning ports and Oss. Nmap is used in matrix, sword and many hacking movies.

Nmap Modes of operation:
TCP PING: -PT: This method of pinging sends a TCP packet to the host with an ACK flag. If the host
replies with an RST, then the host is UP (running).
ICMP Ping: -PI: This is standard ping used by UNIX / Linux boxes.
Connect():-ST: All Linux/Unix systems provide a system call to connect to a machine on a specified
port, with a given protocol.
SYN Stealth: -sS: This is stealth scan in that it does not get logged.
How to Find Out Own computer Ports:
Open Dos prompt and type following command.
C:\> netstat –no
After Show active connections:
Active Connections
Proto Local Address Foreign Address State PID
TCP 117.196.225.191:3604 69.93.227.45:80 ESTABLISHED 2148
TCP 117.196.227.116:1067 80.190.154.74:80 CLOSE_WAIT 3064
TCP 127.0.0.1:1990 127.0.0.1:1991 ESTABLISHED 2020
TCP 127.0.0.1:1991 127.0.0.1:1990 ESTABLISHED 2020
TCP 127.0.0.1:1992 127.0.0.1:1993 ESTABLISHED 2020
TCP 127.0.0.1:1993 127.0.0.1:1992 ESTABLISHED 2020
PID is Process ID ,
We can find out their associate application with help of following command:
C:\> tasklist
To terminate 2020 PID or another process
C:\> taskkill /PID 2020
After All connections will be close on our system.

0 comments:

Post a Comment