Monday, August 06, 2012

quick and dirty way to scan a subnet.

This is a quick and dirty way to scan a subnet.

Make sure you are in bash:

for i in {1..255..1};   do ping -c 1 -t 1 10.10.10.$i | grep "1 packets received";  if [ "$?" -ne 1 ] ; then echo $i; fi  ;  done

No comments: