mirror of
https://github.com/nmap/nmap.git
synced 2025-12-11 10:19:03 +00:00
RPC protocol parsing workaround for NetApp 5.0
Dump response lists protocols with trailing null byte
This commit is contained in:
@@ -719,6 +719,8 @@ Portmap =
|
||||
local len
|
||||
len, pos = string.unpack(">I4", data, pos)
|
||||
pos, protocol = Util.unmarshall_vopaque(len, data, pos)
|
||||
-- workaround for NetApp 5.0: trim trailing null bytes
|
||||
protocol = protocol:match("[^\0]*")
|
||||
len, pos = string.unpack(">I4", data, pos)
|
||||
pos, addr = Util.unmarshall_vopaque(len, data, pos)
|
||||
len, pos = string.unpack(">I4", data, pos)
|
||||
|
||||
Reference in New Issue
Block a user