Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Paste this whole line into your terminal, change the mac of course.
- SKYHOOK API:
- MYMAC=0018F8CB919D && curl --header "Content-Type: text/xml" --data "<?xml version='1.0'?><LocationRQ xmlns='http://skyhookwireless.com/wps/2005' version='2.6' street-address-lookup='full'><authentication version='2.0'><simple><username>beta</username><realm>js.loki.com</realm></simple></authentication><access-point><mac>$MYMAC</mac><signal-strength>-50</signal-strength></access-point></LocationRQ>" https://api.skyhookwireless.com/wps2/location
- The result will be something like this, if found:
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
- <LocationRS version="2.6" xmlns="http://skyhookwireless.com/wps/2005"><location nap="1"><latitude>30.2758017</latitude><longitude>-81.3879355</longitude><hpe>283</hpe><street-address distanceToPoint="12.954518772348797"><street-number>1352</street-number><address-line>S 2nd St</address-line><city>Jacksonville Beach</city><postal-code>32250</postal-code><county>Duval</county><state code="FL">Florida</state><country code="US">United States</country></street-address></location></LocationRS>
- Which you can then plot on a map easily with google maps api.
- GOOGLE API:
- expanded_mac="11:22:33:44:55:66" && ssid="UR_SSID" && curl -s --header "Content-Type: text/plain;" --data "{\"version\":\"1.1.0\",\"request_address\":true,\"wifi_towers\":[{\"mac_address\":\"$expanded_mac\",\"ssid\":\"$ssid\",\"signal_strength\":-50}]}" https://www.google.com:443/loc/json
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement