1
0
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:
dmiller
2017-03-13 14:58:57 +00:00
parent 3e3f600b8a
commit 2091ce3199
17 changed files with 42 additions and 44 deletions

View File

@@ -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)