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: |
---|
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
.
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.
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-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
- https://nmap.org/nsedoc/scripts/broadcast-pim-discovery.html
- https://github.com/nmap/nmap/tree/master/scripts/broadcast-pim-discovery.nse
See Also
Related NSE scripts to the broadcast-pim-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-dns-service-discovery.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-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.
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.