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:
@@ -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]
|
||||||
|
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user