Skip to content

Instantly share code, notes, and snippets.

@cstroie
Created May 11, 2017 13:15
Show Gist options
  • Save cstroie/91ae29761980c42f8d3be37891ecb343 to your computer and use it in GitHub Desktop.
Save cstroie/91ae29761980c42f8d3be37891ecb343 to your computer and use it in GitHub Desktop.
Geolocation
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