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

Adds a fingerprint for Plumtree Portal

This commit is contained in:
nnposter
2016-11-01 00:14:49 +00:00
parent 1e995e1577
commit 6d49b6961b
2 changed files with 39 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
# Nmap Changelog ($Id$); -*-text-*- # Nmap Changelog ($Id$); -*-text-*-
o [NSE] Updated fingerprints for script http-default-accounts with 17 new o [NSE] Updated fingerprints for script http-default-accounts with 18 new
fingerprints. 4 fingerprints have been broadened to cover more variants. fingerprints. 4 fingerprints have been broadened to cover more variants.
[nnposter] [nnposter]

View File

@@ -426,6 +426,44 @@ table.insert(fingerprints, {
end end
}) })
table.insert(fingerprints, {
name = "Plumtree Portal",
category = "web",
paths = {
{path = "/"}
},
target_check = function (host, port, path, response)
local loc = response.header["location"] or ""
return response.status == 302
and loc:find("/portal/server%.pt$")
end,
login_combos = {
{username = "Administrator", password = ""}
},
login_check = function (host, port, path, user, pass)
local form = {in_hi_space="Login",
in_hi_spaceID="0",
in_hi_control="Login",
in_hi_dologin="true",
in_tx_username=user,
in_pw_userpass=pass,
in_se_authsource=""}
local req = http_post_simple(host, port,
url.absolute(path, "portal/server.pt"),
nil, form)
local loc = req.header["location"] or ""
-- successful login is a 302-redirect that sets cookie "plloginoccured"
-- to "true"
if not (req.status == 302 and loc:find("/portal/server%.pt[;?]")) then
return false
end
for _, ck in ipairs(req.cookies or {}) do
if ck.name:lower() == "plloginoccured" then return ck.value == "true" end
end
return false
end
})
table.insert(fingerprints, { table.insert(fingerprints, {
-- Version 0.4.4.6.1-alpha on SamuraiWTF 2.6 -- Version 0.4.4.6.1-alpha on SamuraiWTF 2.6
name = "BeEF", name = "BeEF",