mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Service fingerprint lengths are in hex, not decimal
This commit is contained in:
parent
425e407eb3
commit
9857aa6ac2
2 changed files with 2 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ local unescape = lpeg.P {
|
|||
|
||||
-- Turn the service fingerprint reply to a probe into a binary blob
|
||||
local function get_response (fp, probe)
|
||||
local i, e = string.find(fp, string.format("%s,%%d+,", probe))
|
||||
local i, e = string.find(fp, string.format("%s,%%x+,", probe))
|
||||
if i == nil then return nil end
|
||||
return unescape:match(getquote:match(fp, e+1))
|
||||
end
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ local unescape = lpeg.P {
|
|||
|
||||
-- Turn the service fingerprint reply to a probe into a binary blob
|
||||
local function get_response (fp, probe)
|
||||
local i, e = string.find(fp, string.format("%s,%%d+,", probe))
|
||||
local i, e = string.find(fp, string.format("%s,%%x+,", probe))
|
||||
if i == nil then return nil end
|
||||
return unescape:match(getquote:match(fp, e+1))
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue