| nemesis-ospf(1) | General Commands Manual (usm) | nemesis-ospf(1) |
NAME
nemesis-ospf —
OSPF Protocol (The Nemesis Project)
SYNOPSIS
nemesis-ospf |
[-vZ?-p
TYPE-N
ADDR-i
SEC-l
SEC-z
LEN-x
TYPE-B
NUM-P
FILE-L
ADDR-u
NUM-j
ADDR-k
DATA-y
TYPE-w
TOS-m
METRIC-f
ADDR-g
TAG-L
ADDR-n
MASK-h
ADDR |
DESCRIPTION
nemesis is designed to be a command
line-based, portable human IP stack for UNIX-like and Windows systems. The
suite is broken down by protocol, and should allow for useful scripting of
injected packets from simple shell scripts.
nemesis-ospf provides an interface to craft
and inject OSPF packets, allowing the the user to specify any portion of an
OSPF packet, as well as lower-lever IP packet information.
OSPF Options
-mMETRIC- OSPF Metric
-sNUM- OSPF Sequence Number
-rADDR- OSPF Advertising Router Address
-nMASK- OSPF Netmask
-oOPT- OSPF Options, 1 byte value
-RADDR- OSPF Source Router ID
-AADDR- OSPF Area ID, e.g. 0.0.0.1, default 0.0.0.0
-PFILE- Filename to read for raw (HEX) OSPF packet payload, appended after
selected packet type. I.e., can be used with
-pUto create multi LSA Link State Updates. -v- Display the injected packet in human readable form. Use twice to see a hexdump of the injected package with printable ASCII characters on the right. Use three times for a hexdump without decoded ASCII.
OSPF Packet Types
-pTYPE
OSPF HELLO options
OSPF Database Description (DBD) options
OSPF Link State Update (LSU) options
-BNUM- Number of Link State Advertisements (LSAs) to broadcast
-PFILE- RAW payload file with LSAs, in plain
-pUmode
OSPF Router LSA options
-L-AR-ADDR- Link State ID: Originating Router ID (IP address)
-uNUM- Number of links, default 1
-jADDR- Link ID
-kDATA- Link data
-yTYPE- Link type, default 1
-wTOS- Link TOS number, default 0
-mMETRIC- Link TOS (0) metric (2 bytes)
OSPF Autonomous System External LSA options
OSPF Network LSA options
-LADDR- Link State ID: Originating Router ID (IP address)
-nMASK- Netmask
-hADDR- Attached Router (IP address)
OSPF Summary LSA (IP Network) options
-LADDR- Link State ID: Network route to summarize
-nMASK- Netmask of route
-cNUM- Cost of this route (4 bytes)
Generic LSA options for LSR and LSU packets
-GLSA_Age- Link State Advertisement Age.
-LADDR- Link State ID, usually the Router ID of the originating router
-rADDR- Advertising Router Address
-sNUM- Sequence Number
-nMASK- Multi-purpose netmask
IP OPTIONS
-SADDR- Specify the source address within the IP header.
-DADDR- Specify the destination address within the IP header. Defaults to the link-local multicast address 224.0.0.5 (All OSPF Routers).
-FOPT- Specify the IP header fragmentation options:
IP fragmentation options can be specified individually or combined into a
single argument to the
-Fcommand line switch by separating the options with commas (eg.-FD,M) or spaces (eg.-FM223). The IP fragmentation offset is a 13-bit field with valid values from 0 to 8189. Don't fragment (DF), more fragments (MF) and the reserved flag (RESERVED or RB) are 1-bit fields. NOTE: Under normal conditions, the reserved flag is unset. -IID- Specify the IP ID within the IP header.
-OFILE- This will cause
nemesis-ospfto use the specified IP options file as the options when building the IP header for the injected packet. IP options can be up to 40 bytes in length. The IP options file must be created manually based upon the desired options. IP options can also be read from stdin by specifying-O-instead. -SADDR- Specify the source IP address within the IP header.
-tTOS- Specify the IP type of service (TOS) within the IP header. Valid type of
service values:
NOTE: Under normal conditions, only one type of service is set within a packet. To specify multiple types, specify the sum of the desired values as the type of service.
- 2
- Minimize monetary cost
- 4
- Maximize reliability
- 8
- Maximize throughput
- 24
- Minimize delay
-TTTL- Specify the IP time-to-live (TTL) in the IP header.
DATA LINK OPTIONS
-dIFNAME- Specify the name (for UNIX-like systems) or the number (for Windows systems) of the IFNAME to use (eg. fxp0, eth0, hme0, 1).
-HMAC- Specify the source MAC address, (XX:XX:XX:XX:XX:XX).
-MMAC- Specify the destination MAC address, (XX:XX:XX:XX:XX:XX).
-Z- Lists the available network interfaces by number for use in link-layer injection. NOTE: This feature is only relevant to Windows systems.
DIAGNOSTICS
nemesis-ospf returns 0 on a successful exit,
1 if it exits on an error.
SEE ALSO
nemesis-arp(1), nemesis-dhcp(1), nemesis-dns(1), nemesis-ethernet(1), nemesis-icmp(1), nemesis-igmp(1), nemesis-ip(1), nemesis-rip(1), nemesis-tcp(1), nemesis-udp(1).AUTHORS
Mark Grimes <mark@stateful.net>,Jeff Nathan <jeff@snort.org> and
Joachim Nilsson <troglobit@gmail.com>
BUGS
Please report at https://github.com/libnet/nemesis/issues| December 15, 2019 |
Maintained in troglobit/nemesis as man/nemesis-ospf.1. Send corrections there, or read it on the mirror.