Service fingerprint lengths are in hex, not decimal

This commit is contained in:
dmiller 2014-12-18 03:29:20 +00:00
parent 425e407eb3
commit 9857aa6ac2
2 changed files with 2 additions and 2 deletions

View file

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

View file

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