Created
May 16, 2014 08:53
-
-
Save Nyoho/9227b6a7937e07dc6f8b to your computer and use it in GitHub Desktop.
IP アドレス a.b.c.1 〜 a.b.c.255 の中でポート 80 番に応えてくれるものを探す (ルータモードではないアクセスポイントを探すときに使う)
This file contains hidden or 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
for f in n.n.n.{1..255} | |
do | |
wget --spider --timeout=0.02 --tries=1 http://$f/ > /dev/null 2>&1 | |
if [ $? -eq 0 ]; then | |
echo $f | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment