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 traceroute- geolocation
NSE script.
In this recipe, we will use Nmap to obtain the traceroute geolocation information of a remote target.
How to do it...
- To obtain the traceroute geolocation information of the intermediary hops, use the following command:
# nmap --traceroute --script traceroute-geolocation <target>
- The remote hops will have geolocation information next to the hostname and IP address in the script output:
Host script results: | traceroute-geolocation: |Â Â Â HOPÂ Â RTTÂ Â Â Â ADDRESSÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ...