Nmap targets-traceroute NSE Script
This page contains detailed information about how to use the targets-traceroute NSE script. For list of all NSE scripts, visit the Nmap NSE Library.
Script Overview
Script source code: https://github.com/nmap/nmap/tree/master/scripts/targets-traceroute.nse
Script categories: safe, discovery
Target service / protocol: -
Target network port(s): -
List of CVEs: -
Script Description
The targets-traceroute.nse script inserts traceroute hops into the Nmap scanning queue. It only functions if
Nmap's --traceroute
option is used and the newtargets
script argument is given.
Targets-traceroute NSE Script Arguments
This is a full list of arguments supported by the targets-traceroute.nse script:
newtargetsIf specified, adds traceroute hops onto Nmap scanning queue.
max-newtargetsSets the number of the maximum allowed new targets. If set to 0 or less then there is no limit. The default value is 0.
- - -
To use these script arguments, add them to the Nmap command line using the --script-args arg1=value,[arg2=value,..]
syntax. For example:
nmap --script=targets-traceroute --script-args newtargets=value,max-newtargets=value <target>
Targets-traceroute NSE Script Example Usage
Here's an example of how to use the targets-traceroute.nse script:
nmap --script targets-traceroute --script-args newtargets --traceroute target
Targets-traceroute NSE Script Example Output
Here's a sample output from the targets-traceroute.nse script:
Host script results:
|_traceroute-scan-hops: successfully added 5 new targets.
Targets-traceroute NSE Script Example XML Output
There is no sample XML output for this module. However, by providing the -oX <file>
option, Nmap will produce a XML output and save it in the file.xml
file.
Author
- Henri Doreau
References
- https://nmap.org/nsedoc/scripts/targets-traceroute.html
- https://github.com/nmap/nmap/tree/master/scripts/targets-traceroute.nse
See Also
Related NSE scripts to the targets-traceroute.nse script:
- targets-asn.nse
- targets-ipv6-map4to6.nse
- targets-ipv6-multicast-echo.nse
- targets-ipv6-multicast-invalid-dst.nse
- targets-ipv6-multicast-mld.nse
- targets-ipv6-multicast-slaac.nse
- targets-ipv6-wordlist.nse
- targets-sniffer.nse
- targets-xml.nse
Visit Nmap NSE Library for more scripts.
Version
This page has been created based on Nmap version 7.92.