1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 16:39:03 +00:00

Tightens target_check in the fingerprint for BeEF

This commit is contained in:
nnposter
2016-08-20 02:15:02 +00:00
parent d48bd6bc5d
commit 47d84ec60f

View File

@@ -223,7 +223,8 @@ table.insert(fingerprints, {
{path = "/ui/authentication/"}
},
target_check = function (host, port, path, response)
return response.body
return response.status == 200
and response.body
and response.body:find("BeEF", 1, true)
and response.body:lower():find("<title>beef authentication</title>", 1, true)
end,