Advertisement
Guest User

Untitled

a guest
Mar 12th, 2011
1,210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.48 KB | None | 0 0
  1. Paste this whole line into your terminal, change the mac of course.
  2.  
  3. SKYHOOK API:
  4.  
  5. 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  
  6.  
  7. The result will be something like this, if found:
  8.  
  9. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  10. <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>
  11.  
  12. Which you can then plot on a map easily with google maps api.
  13.  
  14. GOOGLE API:
  15. 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