Advertisements
Skip to content

May 5, 2017

Ping Sweeps

by Criss Davis

Bash – on see live machines.

for i in `seq 1 255`; do ping -c 1 192.168.1.$i ; done
for i in `seq 1 255`; do ping -c 1 192.168.1.$i | tr \\n ' ' | awk '/1 packets received/ {print $2}' ; done
Advertisements
Read more from Uncategorized

Leave a Reply

%d bloggers like this: