1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-30 10:09:03 +00:00

Adds a fingerprint for Motorola AP-7532 to script http-default-accounts

This commit is contained in:
nnposter
2016-08-22 13:35:18 +00:00
parent 429215565c
commit 76760b0c8d

View File

@@ -338,6 +338,34 @@ table.insert(fingerprints, {
end
})
table.insert(fingerprints, {
name = "Motorola AP-7532",
category = "routers",
paths = {
{path = "/"}
},
target_check = function (host, port, path, response)
return response.status == 200
and response.header["server"]
and response.header["server"]:find("^lighttpd/%d+%.")
and response.body
and response.body:lower():find("<title>motorola solutions</title>", 1, true)
end,
login_combos = {
{username = "admin", password = "motorola"}
},
login_check = function (host, port, path, user, pass)
local form = {_dc = stdnse.clock_ms(),
username = user,
password = pass}
local lurl = url.absolute(path, "rest.fcgi/services/rest/login?" .. url.build_query(form))
local req = http.get(host, port, lurl, {no_cache=true, redirect_ok=false})
return req.status == 200
and req.body
and req.body:find('[{,]%s*"status"%s*:%s*true%s*[,}]')
end
})
table.insert(fingerprints, {
-- Version 3.3.2, 4.3.1, 4.4.0, 4.4.1 on RFS6000
name = "Motorola RF Switch",