mirror of
https://github.com/nmap/nmap.git
synced 2026-01-29 17:49:08 +00:00
Fix endianness in unpacking IP addresses, since ipOps.fromdword is fixed. Fixes #750
This commit is contained in:
@@ -1429,7 +1429,7 @@ action = function(host,port)
|
||||
output["Revision"] = char1 .. "." .. char2
|
||||
-- Device IP, this could be the same, as the IP scanning, or may be actual IP behind NAT
|
||||
local dword
|
||||
pos, dword = bin.unpack("<I", response, 37)
|
||||
pos, dword = bin.unpack(">I", response, 37)
|
||||
output["Device IP"] = ipOps.fromdword(dword)
|
||||
-- set Nmap output
|
||||
set_nmap(host, port)
|
||||
|
||||
Reference in New Issue
Block a user