Created
February 20, 2015 20:25
-
-
Save captn3m0/893ba45e724a7abc2013 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
#This is for the DIR-605L router | |
source ../config.cfg | |
echo "Scan 1" | |
curl -s $wifi1_router_url"Status/wifi_assoc.asp" | egrep --color=never -o "[a-f0-9]{2}:[a-f0-9]{2}:[a-f0-9]{2}:[a-f0-9]{2}:[a-f0-9]{2}:[a-f0-9]{2}" | while read mac; do | |
curl -X POST -d "data=$mac&type=wifi" $url_root"?control=submit" | |
done | |
echo "Scan 2" | |
curl -s $wifi2_router_url"Status/wifi_assoc.asp" | egrep --color=never -o "[a-f0-9]{2}:[a-f0-9]{2}:[a-f0-9]{2}:[a-f0-9]{2}:[a-f0-9]{2}:[a-f0-9]{2}" | while read mac; do | |
curl -X POST -d "data=$mac&type=wifi" $url_root"?control=submit" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment