I saw this and thought hmmm, this could come in very handy. As did ‘The Stupid Engineer‘
As it says in the title, the command is:
for i in `seq 1 255`; do ping -c 1 192.168.1.$i | tr \\n ' ' | awk '/1 received/ {print $2}'; done
For when nmap is just not available. It is pretty slow mind.
Simple Bash Ping Script
Hi there!
Thanks for the page views and for visiting! Just checking if you’ve had any luck using nmap wit the P0 option? I’ve had a devil of a time getting it to work exactly how I want it to. Eventually, I’ve had to resort to nmap -T4 -A network/mask > filename.out & and then come back a while later and grep for results.
I’ve never tried using the protocol option with NMAP I must admit. Not sure the options compare as PO is scanning for protocols e.g. protocol 41 IPv6-in-IPv4 etc. Like most things, there’s so many options available, spend enough time and you’ll find what you’re after!