Nmap Development mailing list archives
Re: how do I quickly scan "my-own-subnet"
From: Richard Sammet <richard.sammet () googlemail com>
Date: Tue, 8 Jun 2010 13:09:16 +0200
Hi Felipe, on some of my testing machines I am using an alias for this job: alias 0wn=echo\ $(/sbin/ifconfig eth0 | grep "inet addr" | awk -F'addr:' '{ print $2 }' | awk '{ print $1 }')$(iptab | grep `/sbin/ifconfig eth0 | grep Mask | awk -F'Mask:' '{ print $2 }'` | awk '{ print $4 }') Well, this can be simplified a lot but it does its job. With this you can simply run: nmap `0wn` Greetings, Richard ps. yes, you need the iptab "tool" for this to work... On Tue, Jun 8, 2010 at 12:43 PM, Felipe Alvarez <felipe.alvarez () gmail com> wrote:
Hi list Is there something in nmap for quickly scanning my own subnet? Normally I have to "ifconfig" to see what my IP address and netmask are (DHCP...blah blah) and then type them into a scan. There ought to be something like: #code nmap -sS -v 0.0.0.0 # Which will quickly scan all the addresses in my subnet, by automatically detecting the required values (address + mask) Felipe _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- how do I quickly scan "my-own-subnet" Felipe Alvarez (Jun 08)
- Re: how do I quickly scan "my-own-subnet" Richard Sammet (Jun 08)