1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-16 20:59:02 +00:00

Adds a fingerprint for Zabbix monitoring

This commit is contained in:
nnposter
2016-08-30 21:07:49 +00:00
parent 3419a71b24
commit 24e6547a08

View File

@@ -111,6 +111,35 @@ table.insert(fingerprints, {
end
})
table.insert(fingerprints, {
-- Version 2.0.6
name = "Zabbix",
category = "web",
paths = {
{path = "/zabbix/"}
},
target_check = function (host, port, path, response)
-- true if the response is HTTP/200 and sets cookie "zbx_sessionid"
if response.status == 200 then
for _, ck in ipairs(response.cookies or {}) do
if ck.name:lower() == "zbx_sessionid" then return true end
end
end
return false
end,
login_combos = {
{username = "admin", password = "zabbix"}
},
login_check = function (host, port, path, user, pass)
local req = http.post(host, port, url.absolute(path, "index.php"),
{no_cache=true, redirect_ok=false},
nil,
{request="", name=user, password=pass, enter="Sign in"},
false)
return req.status == 302 and req.header["location"] == "dashboard.php"
end
})
table.insert(fingerprints, {
name = "Xplico",
category = "web",