From 47d84ec60f8fb7364add57389d72007cdc8a250e Mon Sep 17 00:00:00 2001 From: nnposter Date: Sat, 20 Aug 2016 02:15:02 +0000 Subject: [PATCH] Tightens target_check in the fingerprint for BeEF --- nselib/data/http-default-accounts-fingerprints.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nselib/data/http-default-accounts-fingerprints.lua b/nselib/data/http-default-accounts-fingerprints.lua index 43311a157..42e399351 100644 --- a/nselib/data/http-default-accounts-fingerprints.lua +++ b/nselib/data/http-default-accounts-fingerprints.lua @@ -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("beef authentication", 1, true) end,