Script broadcast-ospf2-discover

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

Script Summary

Discover IPv4 networks using Open Shortest Path First version 2(OSPFv2) protocol.

The script works by listening for OSPF Hello packets from the 224.0.0.5 multicast address. The script then replies and attempts to create a neighbor relationship, in order to discover network database.

If no interface was provided as a script argument or through the -e option, the script will fail unless a single interface is present on the system.

Script Arguments

broadcast-ospf2-discover.md5_key

MD5 digest key to use if message digest authentication is disclosed.

broadcast-ospf2-discover.router_id

Router ID to use. Defaults to 0.0.0.1

broadcast-ospf2-discover.timeout

Time in seconds that the script waits for hello from other routers. Defaults to 10 seconds, matching OSPFv2 default value for hello interval.

broadcast-ospf2-discover.interface

Interface to send on (overrides -e). Mandatory if not using -e and multiple interfaces are present.

max-newtargets, newtargets

See the documentation for the target library.

Example Usage

nmap --script=broadcast-ospf2-discover
nmap --script=broadcast-ospf2-discover -e wlan0

Script Output

Pre-scan script results:
| broadcast-ospf2-discover:
|   Area ID: 0.0.0.0
|   External Routes
|     192.168.24.0/24
|_  Use the newtargets script-arg to add the results as targets

Requires


Author:

  • Emiliano Ticci

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