Script ip-geolocation-map-bing

Script types: postrule
Categories: external, safe

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: -

See also:

Script Arguments


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.


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

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


See the documentation for the slaxml library., 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'.



  • Mak Kolybabi <>

License: Same as Nmap--See