Script ip-geolocation-map-bing

Script types: postrule
Categories: external, safe
Download: https://svn.nmap.org/nmap/scripts/ip-geolocation-map-bing.nse

Script Summary

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

See also:

Script Arguments

ip-geolocation-map-bing.format

The default value is 'jpeg', 'png', and 'gif' are also allowed.

ip-geolocation-map-bing.size

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.

ip-geolocation-map-bing.marker_style

This argument can apply styling to the markers. https://msdn.microsoft.com/en-us/library/ff701719.aspx

ip-geolocation-map-bing.map_path

The path at which the rendered Bing Map will be saved to the local filesystem.

ip-geolocation-map-bing.language

The default value is 'en', but other two-letter language codes are accepted.

ip-geolocation-map-bing.layer

The default value is 'Road', 'Aerial', and 'AerialWithLabels' are also allowed.

ip-geolocation-map-bing.api_key

The required Bing Maps API key for your account. An API key can be generated at https://www.bingmapsportal.com/

ip-geolocation-map-bing.center

GPS coordinates defining the center of the image. If omitted, Bing Maps will choose a center that shows all the markers.

slaxml.debug

See the documentation for the slaxml library.

http.host, http.max-body-size, http.max-cache-size, http.max-pipeline, http.pipeline, http.truncated-ok, http.useragent

See the documentation for the http library.

smbdomain, smbhash, smbnoguest, smbpassword, smbtype, smbusername

See the documentation for the smbauth library.

Example Usage

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>

Script Output

| ip-geolocation-map-bing:
|_  The map has been saved at 'map.png'.

Requires


Author:

  • Mak Kolybabi <mak@kolybabi.com>

License: Same as Nmap--See https://nmap.org/book/man-legal.html