Created
May 11, 2017 13:15
-
-
Save cstroie/91ae29761980c42f8d3be37891ecb343 to your computer and use it in GitHub Desktop.
Geolocation
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
sudo iw wlan0 scan | grep -io '\(^bss [^(]*\)\|\(signal: [-.0-9]*\)' | sed -e :a -e '$!N; s/\n/ /; ta' | sed 's/\.[0-9]\+ BSS /;/g' | sed 's/ signal: /,/g' | sed 's/BSS //g; s/\.00//g' | base64 -w 0 | xargs -I{} curl -v "http://api.mylnikov.org/geolocation/wifi?v=1.1&data=open&search={}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment