Categories: external, safe
This script queries the Nmap registry for the GPS coordinates of targets stored by previous geolocation scripts and renders a Bing Map of markers representing the targets.
The Bing Maps REST API has a limit of 100 markers, so if more coordinates are found, only the top 100 markers by number of IPs will be shown.
Additional information for the Bing Maps REST Services API can be found at: - https://msdn.microsoft.com/en-us/library/ff701724.aspx
The default value is 'jpeg', 'png', and 'gif' are also allowed.
The default value is '640x640' pixels, but can be changed so long as the width is between 80 and 2000 pixels and the height is between 80 and 1500 pixels.
This argument can apply styling to the markers. https://msdn.microsoft.com/en-us/library/ff701719.aspx
The path at which the rendered Bing Map will be saved to the local filesystem.
The default value is 'en', but other two-letter language codes are accepted.
The default value is 'Road', 'Aerial', and 'AerialWithLabels' are also allowed.
The required Bing Maps API key for your account. An API key can be generated at https://www.bingmapsportal.com/
GPS coordinates defining the center of the image. If omitted, Bing Maps will choose a center that shows all the markers.
slaxml.debugSee the documentation for the slaxml library.
smbdomain, smbhash, smbnoguest, smbpassword, smbtype, smbusernameSee the documentation for the smbauth library.
http.host, http.max-body-size, http.max-cache-size, http.max-pipeline, http.pipeline, http.truncated-ok, http.useragentSee the documentation for the http library.
nmap -sn -Pn --script ip-geolocation-geoplugin,ip-geolocation-map-bing --script-args ip-geolocation-map-bing.api_key=[redacted],ip-geolocation-map-bing.map_path=map.png <target>
| ip-geolocation-map-bing: |_ The map has been saved at 'map.png'.
License: Same as Nmap--See https://nmap.org/book/man-legal.html