mirror of
https://github.com/nmap/nmap.git
synced 2025-12-20 06:29:02 +00:00
Consolidates fingerprints for Cisco Linksys into a single fingerprint, covering additional device models
This commit is contained in:
@@ -369,35 +369,22 @@ table.insert(fingerprints, {
|
|||||||
})
|
})
|
||||||
|
|
||||||
table.insert(fingerprints, {
|
table.insert(fingerprints, {
|
||||||
-- Version 1.0.22
|
-- Version (see below)
|
||||||
name = "Cisco WAP200",
|
name = "Cisco Linksys",
|
||||||
category = "routers",
|
category = "routers",
|
||||||
paths = {
|
paths = {
|
||||||
{path = "/"}
|
{path = "/"}
|
||||||
},
|
},
|
||||||
target_check = function (host, port, path, response)
|
target_check = function (host, port, path, response)
|
||||||
return http_auth_realm(response) == "Linksys WAP200"
|
-- realm="Linksys WAP200", "Linksys WAP55AG", "Linksys E2000"
|
||||||
|
return (http_auth_realm(response) or ""):find("^Linksys %u[%u%d]+$")
|
||||||
end,
|
end,
|
||||||
login_combos = {
|
login_combos = {
|
||||||
{username = "admin", password = "admin"}
|
-- WAP55AG, version 1.07.01
|
||||||
},
|
-- E2000, version 1.0.03 (any username is valid)
|
||||||
login_check = function (host, port, path, user, pass)
|
{username = "", password = "admin"},
|
||||||
return try_http_basic_login(host, port, path, user, pass, false)
|
-- WAP200, version 1.0.22
|
||||||
end
|
{username = "admin", password = "admin"},
|
||||||
})
|
|
||||||
|
|
||||||
table.insert(fingerprints, {
|
|
||||||
-- Version 1.07.01
|
|
||||||
name = "Cisco WAP55AG",
|
|
||||||
category = "routers",
|
|
||||||
paths = {
|
|
||||||
{path = "/"}
|
|
||||||
},
|
|
||||||
target_check = function (host, port, path, response)
|
|
||||||
return http_auth_realm(response) == "Linksys WAP55AG"
|
|
||||||
end,
|
|
||||||
login_combos = {
|
|
||||||
{username = "", password = "admin"}
|
|
||||||
},
|
},
|
||||||
login_check = function (host, port, path, user, pass)
|
login_check = function (host, port, path, user, pass)
|
||||||
return try_http_basic_login(host, port, path, user, pass, false)
|
return try_http_basic_login(host, port, path, user, pass, false)
|
||||||
|
|||||||
Reference in New Issue
Block a user