Nmap targets-ipv6-multicast-slaac NSE Script


This page contains detailed information about how to use the targets-ipv6-multicast-slaac 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-ipv6-multicast-slaac.nse
Script categories: discovery, broadcast
Target service / protocol: -
Target network port(s): -
List of CVEs: -

Script Description


The targets-ipv6-multicast-slaac.nse script performs IPv6 host discovery by triggering stateless address auto-configuration (SLAAC).

This script works by sending an ICMPv6 Router Advertisement with a random address prefix, which causes hosts to begin SLAAC and send a solicitation for their newly configured address, as part of duplicate address detection. The script then guesses the remote addresses by combining the link-local prefix of the interface with the interface identifier in each of the received solicitations. This should be followed up with ordinary ND host discovery to verify that the guessed addresses are correct.

The router advertisement has a router lifetime of zero and a short prefix lifetime (a few seconds)

See also:

Targets-ipv6-multicast-slaac NSE Script Arguments


This is a full list of arguments supported by the targets-ipv6-multicast-slaac.nse script:

targets-ipv6-multicast-slaac.interface

The interface to use for host discovery.

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.

newtargets

If specified, lets NSE scripts add new targets.

- - -
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-ipv6-multicast-slaac --script-args targets-ipv6-multicast-slaac.interface=value,max-newtargets=value <target>

Targets-ipv6-multicast-slaac NSE Script Example Usage


Here's an example of how to use the targets-ipv6-multicast-slaac.nse script:

nmap -6 --script targets-ipv6-multicast-slaac --script-args 'newtargets,interface=eth0' -sP

Targets-ipv6-multicast-slaac NSE Script Example Output


Here's a sample output from the targets-ipv6-multicast-slaac.nse script:

Pre-scan script results:
| targets-ipv6-multicast-slaac:
|   IP: fe80:0000:0000:0000:1322:33ff:fe44:5566  MAC: 11:22:33:44:55:66  IFACE: eth0
|_  Use --script-args=newtargets to add the results as targets

Targets-ipv6-multicast-slaac 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.

Authors


  • David Fifield
  • Xu Weilin

References


See Also


Related NSE scripts to the targets-ipv6-multicast-slaac.nse script:

Visit Nmap NSE Library for more scripts.

Version


This page has been created based on Nmap version 7.92.