Skip to content

Instantly share code, notes, and snippets.

@jglenn9k
Created February 3, 2014 18:22
Show Gist options
  • Save jglenn9k/8789368 to your computer and use it in GitHub Desktop.
Save jglenn9k/8789368 to your computer and use it in GitHub Desktop.
Scans a Class C for IP addresses
for i in $(seq 1 253); do x=$(arping -c 3 192.668.1.$i | awk '{ if ($0 ~ "^Unicast reply") { print $4" "$5 } }' | sort -u); [ "$x" ] && echo $x || echo 192.168.1.$i FREE; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment