Obtaining traceroute geolocation information
Nmap can map network paths by tracing the hops between the origin and destination. Geographical information can be useful when tracing events, and we can include it with Nmap's traceroute functionality with some help from the NSE script traceroute-geolocation
.
In this recipe, we will use Nmap to obtain traceroute geolocation information of a remote target.
How to do it...
To obtain traceroute geolocation information of the remote nodes, use the following command:
# nmap --traceroute --script traceroute-geolocation <target>
The remote nodes will have GPS coordinates and location next to the hostname and IP address in the results:
# nmap --traceroute --script traceroute-geolocation scanme.nmap.org
Nmap scan report for scanme.nmap.org (45.33.32.156)
Host is up (0.057s latency).
Other addresses for scanme.nmap.org (not scanned):
2600:3c01::f03c:91ff:fe18:bb2f
Host script results:
| traceroute-geolocation:
| HOP...