Script ip-geolocation-map-google

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 Google Map of markers representing the targets.

Additional information for the Google Static Maps API can be found at: -

See also:

Script Arguments


The default value is 'roadmap', 'satellite', 'hybrid', and 'terrain' are also allowed.


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


The default value is 'png' (alias for 'png8'), 'png32', 'gif', 'jpg', and 'jpg-baseline' are also allowed.


The required Google Maps API key for your account. An API key can be generated at


The default value is 1, but values 2 and 4 are permitted. Scale level 4 is only available to Google Maps Premium customers.


This argument can apply styling to the markers.

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


The default value is '640x640' pixels, but can be increased by Google Maps Premium customers.


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


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-google --script-args ip-geolocation-map-google.api_key=[redacted],ip-geolocation-map-google.map_path=map.png <target>

Script Output

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



  • Mak Kolybabi <>

License: Same as Nmap--See