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:

newtargets

If specified, adds traceroute hops onto Nmap scanning queue.

max-newtargets

Sets 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


See Also


Related NSE scripts to the targets-traceroute.nse script:

Visit Nmap NSE Library for more scripts.

Version


This page has been created based on Nmap version 7.92.