metasploit-framework icon indicating copy to clipboard operation
metasploit-framework copied to clipboard

wlan_geolocate Google 404

Open myfoxx opened this issue 9 years ago • 2 comments

meterpreter > wlan_geolocate 
[-] Error running command wlan_geolocate: RuntimeError Failure connecting to Google for location lookup. Code 404 for query https://maps.googleapis.com/maps/api/browserlocation/json?browser=firefox&sensor=true&.......

May Be google have change path...

myfoxx avatar Sep 06 '17 12:09 myfoxx

Hum maybe it changes in favor of :

  • https://developers.google.com/maps/documentation/geolocation/intro
  • https://developers.google.com/maps/documentation/geolocation/intro#wifi_access_point_object

Currently Metasploit's geolocation sends GET HTTP Request to https://maps.googleapis.com/maps/api/browserlocation/json?browser=firefox&sensor=true by adding mac/ssid/signal_strength to the request.

Maybe we could use https://www.googleapis.com/geolocation/v1/geolocate with :

{
  "wifiAccessPoints": [
    {
  "macAddress": "00:25:9c:cf:1c:ac",
  "signalStrength": -43
    }
  ]
}

Warning : without API key we won't be able to pull the API => "Daily Limit for Unauthenticated Use Exceeded."

elenoir avatar Sep 07 '17 10:09 elenoir

API keyed usage is undesirable when attempting to perform activities anonymously. So if we can figure out how to keep this key-free, i for one would prefer that route. Worst case, if we have to go to the API, at least it should stay somewhat consistent...

sempervictus avatar Sep 10 '17 16:09 sempervictus