Security Basics mailing list archives

RE: how to do a nmap for a range?


From: "Jeremi Gosney" <Jeremi.Gosney () motricity com>
Date: Fri, 23 Jan 2009 12:11:38 -0800

/sbin/route is generally the best tool for discovering how your system is communicating through your router, as it will 
display the details for each route. 'traceroute' and 'tracepath' will also show you this information. 

what you were attempting to perform with nmap is called a 'ping sweep', which will discover all hosts that respond to 
icmp echo requests on a given range. the reason your command didn't sweep is because you told it to ping a single IP. 
if you wanted to sweep everything behind your router, try 'nmap -sP 192.168.0.0/16'. i guarantee it'll take a lot 
longer than 12.6s to complete :)

if you're interested in learning more, here are some pages i would suggest reading: 
http://www.debian.org/doc/manuals/network-administrator/ch-tcpip.html
http://nmap.org/docs.html 


-----Original Message-----
From: listbounce () securityfocus com [mailto:listbounce () securityfocus com] On Behalf Of shirish
Sent: Thursday, January 22, 2009 10:40 PM
To: security-basics () securityfocus com
Subject: how to do a nmap for a range?

Hi all,
        Newbie to nmap. First of all thank you for a great tool.

I want to use nmap to find on which IP my router is

I read somewhere that you could use nmap to know where or how your computer is communicating through the router with 
some given range.

Something like the following :-

nmap -sP 192.168.0.1/32

Starting Nmap 4.62 ( http://nmap.org ) at 2009-01-23 12:00 IST Host 192.168.0.1 appears to be up.
Nmap done: 1 IP address (1 host up) scanned in 12.595 seconds

The manpage gives the following info.

  -sP: Ping Scan - go no further than determining if host is online

Now trying the address which is supposed to be up doesn't give anything in the browser

So I have couple of questions :-

a. Is there a way to scan all the addresses for positives between

192.168.0.0 to whatever could be the ending 192.168.255.255

reference :-- http://en.wikipedia.org/wiki/192.168.1.1

Looking forward to any guidance on the same.
-- 
          Regards,
          Shirish Agarwal
  My quotes in this email licensed under CC 3.0 http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17

Current thread: