Script ip-geolocation-map-google
Script types:
postrule
Categories:
external, safe
Download: https://svn.nmap.org/nmap/scripts/ip-geolocation-map-google.nse
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: - https://developers.google.com/maps/documentation/static-maps/intro
See also:
- ip-geolocation-geoplugin.nse
- ip-geolocation-ipinfodb.nse
- ip-geolocation-map-bing.nse
- ip-geolocation-map-kml.nse
- ip-geolocation-maxmind.nse
Script Arguments
- ip-geolocation-map-google.layer
The default value is 'roadmap', 'satellite', 'hybrid', and 'terrain' are also allowed. https://developers.google.com/maps/documentation/static-maps/intro#MapTypes
- ip-geolocation-map-google.map_path
The path at which the rendered Google Map will be saved to the local filesystem.
- ip-geolocation-map-google.format
The default value is 'png' (alias for 'png8'), 'png32', 'gif', 'jpg', and 'jpg-baseline' are also allowed. https://developers.google.com/maps/documentation/static-maps/intro#ImageFormats
- ip-geolocation-map-google.api_key
The required Google Maps API key for your account. An API key can be generated at https://developers.google.com/maps/documentation/static-maps/
- ip-geolocation-map-google.scale
The default value is 1, but values 2 and 4 are permitted. Scale level 4 is only available to Google Maps Premium customers. https://developers.google.com/maps/documentation/static-maps/intro#scale_values
- ip-geolocation-map-google.marker_style
This argument can apply styling to the markers. https://developers.google.com/maps/documentation/static-maps/intro#MarkerStyles
- ip-geolocation-map-google.center
GPS coordinates defining the center of the image. If omitted, Google Maps will choose a center that shows all the markers.
- ip-geolocation-map-google.size
The default value is '640x640' pixels, but can be increased by Google Maps Premium customers. https://developers.google.com/maps/documentation/static-maps/intro#Imagesizes
- ip-geolocation-map-google.language
The default value is 'en', but other two-letter language codes are accepted.
- 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-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'.
Requires
Author:
License: Same as Nmap--See https://nmap.org/book/man-legal.html