Nmap broadcast-dhcp6-discover NSE Script


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

Script Description


The broadcast-dhcp6-discover.nse script sends a DHCPv6 request (Solicit) to the DHCPv6 multicast address, parses the response, then extracts and prints the address along with any options returned by the server.

The script requires Nmap to be run in privileged mode as it binds the socket to a privileged port (udp/546).

Broadcast-dhcp6-discover NSE Script Arguments


The broadcast-dhcp6-discover.nse script does not have any arguments.

Broadcast-dhcp6-discover NSE Script Example Usage


Here's an example of how to use the broadcast-dhcp6-discover.nse script:

nmap -6 --script broadcast-dhcp6-discover

Broadcast-dhcp6-discover NSE Script Example Output


Here's a sample output from the broadcast-dhcp6-discover.nse script:

| broadcast-dhcp6-discover:
|   Interface: en0
|     Message type: Advertise
|     Transaction id: 74401
|     Options
|       Client identifier: MAC: 68:AB:CD:EF:AB:CD; Time: 2012-01-24 20:36:48
|       Server identifier: MAC: 08:FE:DC:BA:98:76; Time: 2012-01-20 11:44:58
|       Non-temporary Address: 2001:db8:1:2:0:0:0:1000
|       DNS Servers: 2001:db8:0:0:0:0:0:35
|       Domain Search: example.com, sub.example.com
|_      NTP Servers: 2001:db8:1111:0:0:0:0:123, 2001:db8:1111:0:0:0:0:124

Broadcast-dhcp6-discover 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


  • Patrik Karlsson

References


See Also


Related NSE scripts to the broadcast-dhcp6-discover.nse script:

Visit Nmap NSE Library for more scripts.

Version


This page has been created based on Nmap version 7.92.