- Apr 25, 2015
- 1,845
- 2
- 2,199
- 327
Code:
nmap -sP 11.11.152.0/22 -n -v 3 --max-rtt-timeout 100ms -oG - | awk '/Up$/{print $2}'
What I highly recommend is this:
Code:
nmap -sP 11.11.152.0/22 -n -v 3 --max-rtt-timeout 100ms -oG - | awk '/Up$/{print $2}' > scan1
How many hosts found?
Code:
wc scan1
Now if we want to check on the top 20 ports as quickly as possible.
Code:
nmap -sTU --top-ports 20 11.11.152.0/22 -n -v 3 -T5 -oG the_20
This is going to write out a list of the open ports, now you can run an awesome command against the newly saved the_20 file.
Code:
cat the_20 | grep "Status:"
Would show you what all was scanned, both Down and Up, while:
Code:
cat the_20 | awk '/Up$/{print $2}'
Simply shows off the IPs showing as up (online).
... now ZMap time:
Code:
zmap -p22 11.11.152.0/22 --max-sendto-failures 10000 --output-file=zmap22
... I know this is more than just Nmap, just showing off ZMap in action!
Fun, fast, and simple.. copy/paste and change the IP address/range lol