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-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.
newtargetsIf 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
- https://nmap.org/nsedoc/scripts/broadcast-dns-service-discovery.html
- https://github.com/nmap/nmap/tree/master/scripts/broadcast-dns-service-discovery.nse
See Also
Related NSE scripts to the broadcast-dns-service-discovery.nse script:
- broadcast-ataoe-discover.nse
- broadcast-avahi-dos.nse
- broadcast-bjnp-discover.nse
- broadcast-db2-discover.nse
- broadcast-dhcp6-discover.nse
- broadcast-dhcp-discover.nse
- broadcast-dropbox-listener.nse
- broadcast-eigrp-discovery.nse
- broadcast-hid-discoveryd.nse
- broadcast-igmp-discovery.nse
- broadcast-jenkins-discover.nse
- broadcast-listener.nse
- broadcast-ms-sql-discover.nse
- broadcast-netbios-master-browser.nse
- broadcast-networker-discover.nse
- broadcast-novell-locate.nse
- broadcast-ospf2-discover.nse
- broadcast-pc-anywhere.nse
- broadcast-pc-duo.nse
- broadcast-pim-discovery.nse
- broadcast-ping.nse
- broadcast-pppoe-discover.nse
- broadcast-rip-discover.nse
- broadcast-ripng-discover.nse
- broadcast-sonicwall-discover.nse
- broadcast-sybase-asa-discover.nse
- broadcast-tellstick-discover.nse
- broadcast-upnp-info.nse
- broadcast-versant-locate.nse
- broadcast-wake-on-lan.nse
- broadcast-wpad-discover.nse
- broadcast-wsdd-discover.nse
- broadcast-xdmcp-discover.nse
Visit Nmap NSE Library for more scripts.
Version
This page has been created based on Nmap version 7.92.