Skip to content

Instantly share code, notes, and snippets.

@honzahommer
Created January 30, 2019 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save honzahommer/473965d3de65b2569fbeb82c502b6f6c to your computer and use it in GitHub Desktop.
Save honzahommer/473965d3de65b2569fbeb82c502b6f6c to your computer and use it in GitHub Desktop.
Opennet find site APs
#!/usr/bin/env bash
{ # this ensures the entire script is downloaded #
for i in {0..9}; do
for j in {10..30}; do
icmp=$(ping -o -t1 10.0.$i.$j)
if [ $? = 0 ]; then
echo 10.0.$i.$j
fi
done
done
} # this ensures the entire script is downloaded #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment