Security Basics mailing list archives

RE: how to do a nmap for a range?


From: "Caskey, Keith" <Caskey.Keith () con-way com>
Date: Fri, 23 Jan 2009 09:31:37 -0800

Nmap -sP 192.168.0.0/16 > (filename)

This will scan the entire address range from 192.168.0.0 through 192.168.255.255 and send the output to a file name of 
your choice...

I'm not sure what you mean by "know where or how your computer is communicating through a router" but this will at 
least tell you what hosts are online in that range.  Since it is such a large range, it will take some time...

-----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: