Nmap broadcast-dns-service-discovery NSE Script


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

Script Description


The broadcast-dns-service-discovery.nse script attempts to discover hosts' services using the DNS Service Discovery protocol. It sends a multicast DNS-SD query and collects all the responses.

The script first sends a query for _services._dns-sd._udp.local to get a list of services. It then sends a followup query for each one to try to get more information.

Broadcast-dns-service-discovery NSE Script Arguments


This is a full list of arguments supported by the broadcast-dns-service-discovery.nse script:

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=broadcast-dns-service-discovery --script-args max-newtargets=value,newtargets=value <target>

Broadcast-dns-service-discovery NSE Script Example Usage


Here's an example of how to use the broadcast-dns-service-discovery.nse script:

nmap --script=broadcast-dns-service-discovery

Broadcast-dns-service-discovery NSE Script Example Output


Here's a sample output from the broadcast-dns-service-discovery.nse script:

| broadcast-dns-service-discovery:
|   1.2.3.1
|     _ssh._tcp.local
|     _http._tcp.local
|   1.2.3.50
|     22/tcp ssh
|       org.freedesktop.Avahi.cookie=2292090182
|       Address=1.2.3.50
|     80/tcp http
|       path=/admin
|       org.freedesktop.Avahi.cookie=2292090182
|       path=/
|       org.freedesktop.Avahi.cookie=2292090182
|       path=/pim
|       org.freedesktop.Avahi.cookie=2292090182
|       Address=1.2.3.50
|   1.2.3.116
|     80/tcp http
|_      Address=1.2.3.116

Broadcast-dns-service-discovery 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-dns-service-discovery.nse script:

Visit Nmap NSE Library for more scripts.

Version


This page has been created based on Nmap version 7.92.