Nmap broadcast-hid-discoveryd NSE Script


This page contains detailed information about how to use the broadcast-hid-discoveryd NSE script. For list of all NSE scripts, visit the Nmap NSE Library.

Select:
Overview
Error Messages

Script Overview


Script source code: https://github.com/nmap/nmap/tree/master/scripts/broadcast-hid-discoveryd.nse
Script categories: discovery, broadcast, safe
Target service / protocol: -
Target network port(s): -
List of CVEs: -

Script Description


The broadcast-hid-discoveryd.nse script discovers HID devices on a LAN by sending a discoveryd network broadcast probe.

For more information about HID discoveryd, see:

Broadcast-hid-discoveryd NSE Script Arguments


This is a full list of arguments supported by the broadcast-hid-discoveryd.nse script:

broadcast-hid-discoveryd.address

Address to which the probe packet is sent. (default: 255.255.255.255)

broadcast-hid-discoveryd.timeout

Socket timeout (default: 5s)

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-hid-discoveryd --script-args broadcast-hid-discoveryd.address=value,broadcast-hid-discoveryd.timeout=value <target>

Broadcast-hid-discoveryd NSE Script Example Usage


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

nmap --script broadcast-hid-discoveryd

nmap --script broadcast-hid-discoveryd --script-args timeout=15s

Broadcast-hid-discoveryd NSE Script Example Output


Here's a sample output from the broadcast-hid-discoveryd.nse script:

Pre-scan script results:
| broadcast-hid-discoveryd:
|   MAC: 00:06:8E:00:00:00; Name: NoEntry; IP Address: 10.123.123.1; Model: EH400; Version: 2.3.1.603 (04/23/2012)
|   MAC: 00:06:8E:FF:FF:FF; Name: NoExit; IP Address: 10.123.123.123; Model: EH400; Version: 2.3.1.603 (04/23/2012)
|_  Use --script-args=newtargets to add the results as targets

Broadcast-hid-discoveryd 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


  • Brendan Coles

References


See Also


Related NSE scripts to the broadcast-hid-discoveryd.nse script:

Visit Nmap NSE Library for more scripts.

The broadcast-hid-discoveryd.nse script may fail with the following error messages. Check for the possible causes by using the code snippets highlighted below found in the script source code. This can often times help in identifying the root cause of the problem.

Failed to send broadcast probe


Here is a relevant code snippet related to the "Failed to send broadcast probe" error message:

50:	
51:	  -- send two packets, just in case
52:	  for i=1,2 do
53:	    local status = socket:sendto(host, port, "discover;013;")
54:	    if ( not(status) ) then
55:	      return stdnse.format_output(false, "Failed to send broadcast probe")
56:	    end
57:	  end
58:	
59:	  local timeout = tonumber(arg_timeout) or ( 20 / ( nmap.timing_level() + 1 ) )
60:	  local results = {}

Version


This page has been created based on Nmap version 7.92.

Go back to menu.