diff --git a/scripts/http-server-header.nse b/scripts/http-server-header.nse index ef2fecb4c..1f70c2dc3 100644 --- a/scripts/http-server-header.nse +++ b/scripts/http-server-header.nse @@ -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 diff --git a/scripts/snmp-info.nse b/scripts/snmp-info.nse index 57094f04c..294a28067 100644 --- a/scripts/snmp-info.nse +++ b/scripts/snmp-info.nse @@ -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