Nmap broadcast-pim-discovery NSE Script


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

Script Description


The broadcast-pim-discovery.nse script discovers routers that are running PIM (Protocol Independent Multicast).

This works by sending a PIM Hello message to the PIM multicast address 224.0.0.13 and listening for Hello messages from other routers.

Broadcast-pim-discovery NSE Script Arguments


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

broadcast-pim-discovery.timeout

Time to wait for responses in seconds. Defaults to 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-pim-discovery --script-args broadcast-pim-discovery.timeout=value,max-newtargets=value <target>

Broadcast-pim-discovery NSE Script Example Usage


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

nmap --script broadcast-pim-discovery

nmap --script broadcast-pim-discovery -e eth1
--script-args 'broadcast-pim-discovery.timeout=10'

Broadcast-pim-discovery NSE Script Example Output


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

Pre-scan script results:
| broadcast-pim-discovery:
|   172.16.0.12
|   172.16.0.31
|   172.16.0.44
|_  Use the newtargets script-arg to add the results as targets

Broadcast-pim-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


  • Hani Benhabiles

References


See Also


Related NSE scripts to the broadcast-pim-discovery.nse script:

Visit Nmap NSE Library for more scripts.

The broadcast-pim-discovery.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.

Couldn't get interface for %s


Here is a relevant code snippet related to the "Couldn't get interface for %s" error message:

155:	    interface = nmap.get_interface_info(interface)
156:	  else
157:	    interface = getInterface(mcast)
158:	  end
159:	  if not interface then
160:	    return stdnse.format_output(false, ("Couldn't get interface for %s"):format(mcast))
161:	  end
162:	
163:	  stdnse.debug1("will send via %s interface.", interface.shortname)
164:	
165:	  -- Launch listener

Version


This page has been created based on Nmap version 7.92.

Go back to menu.