Sunday, June 21, 2009

ICMP IP Scan Using NMAP

Type the following command to run ICMP IP Scan

# nmap -sP -PI 192.168.1.0/24

Output:

Starting Nmap 4.20 ( http://insecure.org ) at 2008-01-29 23:40 IST
Host 192.168.1.1 appears to be up.
MAC Address: 00:18:39:6A:C6:8B (Cisco-Linksys)
Host 192.168.1.106 appears to be up.
......
...
....
Nmap finished: 256 IP addresses (2 hosts up) scanned in 5.746 seconds

Where,


* -sP : This option tells Nmap to only perform a ping scan (host discovery), then print out the available hosts that responded to the scan. This is also known as ping scan.
* -PI : This open tells Nmap that we are sending ICMP echo requests

Cheers
Nobs

No comments:

Post a Comment