Script mrinfo

Script types: prerule
Categories: discovery, safe, broadcast
Download: https://svn.nmap.org/nmap/scripts/mrinfo.nse

Script Summary

Queries targets for multicast routing information.

This works by sending a DVMRP Ask Neighbors 2 request to the target and listening for DVMRP Neighbors 2 responses that are sent back and which contain local addresses and the multicast neighbors on each interface of the target. If no specific target is specified, the request will be sent to the 224.0.0.1 All Hosts multicast address.

This script is similar somehow to the mrinfo utility included with Windows and Cisco IOS.

Script Arguments

mrinfo.target

Host to which the request is sent. If not set, the request will be sent to 224.0.0.1.

mrinfo.timeout

Time to wait for responses. Defaults to 5s.

max-newtargets, newtargets

See the documentation for the target library.

Example Usage

nmap --script mrinfo
nmap --script mrinfo -e eth1
nmap --script mrinfo --script-args 'mrinfo.target=172.16.0.4'

Script Output

Pre-scan script results:
| mrinfo:
|   Source: 224.0.0.1
|     Version 12.4
|     Local address: 172.16.0.2
|       Neighbor: 172.16.0.4
|       Neighbor: 172.16.0.3
|     Local address: 172.17.0.1
|       Neighbor: 172.17.0.2
|     Local address: 172.18.0.1
|       Neighbor: 172.18.0.2
|   Source: 224.0.0.1
|     Version 12.4
|     Local address: 172.16.0.4
|       Neighbor: 172.16.0.3
|       Neighbor: 172.16.0.2
|     Local address: 172.17.0.2
|       Neighbor: 172.17.0.1
|   Source: 224.0.0.1
|     Version 12.4
|     Local address: 172.16.0.3
|       Neighbor: 172.16.0.4
|       Neighbor: 172.16.0.2
|     Local address: 172.18.0.2
|       Neighbor: 172.18.0.1
|_  Use the newtargets script-arg to add the responses as targets

Requires


Author:

  • Hani Benhabiles

License: Same as Nmap--See https://nmap.org/book/man-legal.html