From 32f998c9f54c80180523820d0fd82e42b09e5035 Mon Sep 17 00:00:00 2001 From: nnposter Date: Mon, 31 Oct 2016 01:52:30 +0000 Subject: [PATCH] Adds support for CactiEZ Linux distribution --- nselib/data/http-default-accounts-fingerprints.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nselib/data/http-default-accounts-fingerprints.lua b/nselib/data/http-default-accounts-fingerprints.lua index 13413bba0..a3b2ebea9 100644 --- a/nselib/data/http-default-accounts-fingerprints.lua +++ b/nselib/data/http-default-accounts-fingerprints.lua @@ -169,6 +169,7 @@ fingerprints = {} --WEB --- table.insert(fingerprints, { + -- Version 0.8.8a name = "Cacti", category = "web", paths = { @@ -176,10 +177,11 @@ table.insert(fingerprints, { {path = "/cacti/"} }, target_check = function (host, port, path, response) - -- true if the response is HTTP/200 and sets cookie "Cacti" + -- true if the response is HTTP/200 and sets cookie "Cacti" or "CactiEZ" if response.status == 200 then for _, ck in ipairs(response.cookies or {}) do - if ck.name:lower() == "cacti" then return true end + local cname = ck.name:lower() + if cname == "cacti" or cname == "cactiez" then return true end end end return false