mirror of
https://github.com/nmap/nmap.git
synced 2025-12-19 22:19:02 +00:00
Adds a fingerprint for Netgear ProSafe Plus Switch
This commit is contained in:
@@ -777,6 +777,35 @@ table.insert(fingerprints, {
|
||||
end
|
||||
})
|
||||
|
||||
table.insert(fingerprints, {
|
||||
-- Version 2.00.08 on GS108PEv3
|
||||
name = "Netgear ProSafe Plus Switch",
|
||||
category = "routers",
|
||||
paths = {
|
||||
{path = "/"}
|
||||
},
|
||||
target_check = function (host, port, path, response)
|
||||
return response.status == 200
|
||||
and response.body
|
||||
and response.body:find("loginTData", 1, true)
|
||||
and response.body:lower():find("<title>netgear ", 1, true)
|
||||
end,
|
||||
login_combos = {
|
||||
{username = "", password = "password"}
|
||||
},
|
||||
login_check = function (host, port, path, user, pass)
|
||||
local req = http_post_simple(host, port, url.absolute(path, "login.cgi"),
|
||||
nil, {password=pass})
|
||||
-- successful login is a HTTP/200 that sets cookie xxxSID,
|
||||
-- where xxx is the hardware model, such as GS108SID
|
||||
if req.status ~= 200 then return false end
|
||||
for _, ck in ipairs(req.cookies or {}) do
|
||||
if ck.name:lower():find("sid$") then return true end
|
||||
end
|
||||
return false
|
||||
end
|
||||
})
|
||||
|
||||
table.insert(fingerprints, {
|
||||
name = "Motorola AP-7532",
|
||||
category = "routers",
|
||||
|
||||
Reference in New Issue
Block a user