mirror of
https://github.com/nmap/nmap.git
synced 2026-06-20 07:29:59 +00:00
Improved EIGRP processing for broadcast-listener. The pattern match was insufficient so I added a check for IP protocol 88.
This commit is contained in:
parent
8425cb69e1
commit
8a0931b752
1 changed files with 6 additions and 1 deletions
|
|
@ -165,6 +165,9 @@ Decoders = {
|
|||
process = function(self, layer3)
|
||||
|
||||
local p = packet.Packet:new( layer3, #layer3 )
|
||||
-- EIGRP is IP protocol 88 (0x58), so verify this
|
||||
if ( p.ip_p ~= 88 ) then return end
|
||||
|
||||
local data = layer3:sub(p.ip_data_offset + 1)
|
||||
|
||||
-- Extract the EIGRP header
|
||||
|
|
@ -267,8 +270,10 @@ Decoders = {
|
|||
process = function(self, layer3)
|
||||
|
||||
local p = packet.Packet:new( layer3, #layer3 )
|
||||
local data = layer3:sub(p.ip_data_offset + 1)
|
||||
-- EIGRP is IP protocol 88 (0x58), so verify this
|
||||
if ( p.ip_p ~= 88 ) then return end
|
||||
|
||||
local data = layer3:sub(p.ip_data_offset + 1)
|
||||
-- Extract the EIGRP header
|
||||
local pos, ver, opcode, checksum, flags, seq, ack, asnum = bin.unpack(">CCSiiii", data)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue