Security Basics mailing list archives
Re: how to do a nmap for a range?
From: Isaac Sabas <simplybeliv () yahoo com>
Date: Sat, 24 Jan 2009 02:53:53 -0800 (PST)
Hi Shirish, First of all, -sP is just doing a ping sweep, so no port scan is involved. If you want to scan your networks subnet, /32 won't do since you're only scanning 2 hosts. Most often your network would be a /24 network, so what you can do with nmap is this: nmap -sP 192.168.0.0/24 If you want to scan from 192.168.0.0 to 192.168.255.255, use: nmap -sP 192.168.0.0/16 If you got DHCP enabled on your network, you don't need nmap to know what IP your router is using (I'm assuming the interface to which the LAN is connected). There are two ways to know your router's LAN IP. First is by using the command ipconfig in MS command prompt (if your using windows) or typing route (if your using linux). You will see the default gateway or the default route there. The default gateway/route is always your router. Another way is to use traceroute/tracert(windows). Try tracerouting a host outside your network, the first output of the traceroute command is your router. Hope this answers your question. Glad to help out. Isaac Herculano S. Sabas CCNA E: isaac.sabas () ymail com ________________________________ From: shirish <shirishag75 () gmail com> To: security-basics () securityfocus com Sent: Friday, January 23, 2009 2:39:42 PM 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 ________________________________ Get connected with chat on network profile, blog, or any personal website! Yahoo! allows you to IM with Pingbox. Check it out! Get connected with chat on network profile, blog, or any personal website! Yahoo! allows you to IM with Pingbox. Check it out! http://ph.messenger.yahoo.com/pingbox
Current thread:
- how to do a nmap for a range? shirish (Jan 23)
- Re: how to do a nmap for a range? hkb (Jan 23)
- Re: how to do a nmap for a range? Calvin Maready (Jan 23)
- RE: how to do a nmap for a range? Caskey, Keith (Jan 23)
- Re: how to do a nmap for a range? Robin Wood (Jan 23)
- Re: how to do a nmap for a range? Andrew Kuriger (Jan 23)
- RE: how to do a nmap for a range? Jeremi Gosney (Jan 23)
- <Possible follow-ups>
- Re: how to do a nmap for a range? Isaac Sabas (Jan 27)
- Re: how to do a nmap for a range? rohnskii (Jan 28)
- Re: Re: how to do a nmap for a range? a (Jan 28)