Created
January 30, 2019 14:49
-
-
Save honzahommer/473965d3de65b2569fbeb82c502b6f6c to your computer and use it in GitHub Desktop.
Opennet find site APs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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