Simplifies a match pattern

This commit is contained in:
nnposter 2017-04-25 21:41:43 +00:00
parent b2ed1d58b5
commit 2a07563f1d

View file

@ -568,7 +568,7 @@ table.insert(fingerprints, {
target_check = function (host, port, path, response)
local realm = http_auth_realm(response) or ""
-- Exact PCRE: "^level 15?( or view)? access$"
return realm:gsub("_"," "):find("^level 15? .*%f[^%s]access$")
return realm:gsub("_"," "):find("^level 15?%f[ ].* access$")
end,
login_combos = {
{username = "", password = ""},