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

Adds Zebra printer fingerprints to http-default-accounts

This commit is contained in:
paulino
2015-02-17 23:38:40 +00:00
parent 4a6dc88a3c
commit 588d744bd6

View File

@@ -365,6 +365,48 @@ table.insert(fingerprints, {
end
})
---
--Printers
---
table.insert(fingerprints, {
name = "Zebra Printer",
category = "printer",
paths = {
{path = "/setgen"}
},
target_check = function (host, port, path, response)
return response.body
and response.body:lower():find("<h1>zebra technologies<br>", 1, true)
end,
login_combos = {
{username = "", password = "1234"}
},
login_check = function (host, port, path, user, pass)
local form = {}
form["0"] = pass
return try_http_post_login(host, port, path, "authorize", "incorrect password", form)
end
})
table.insert(fingerprints, {
name = "Zebra Print Server",
category = "printer",
paths = {
{path = "/server/TCPIPGEN.htm"}
},
target_check = function (host, port, path, response)
return http_auth_realm(response) == "Network Print Server"
and response.header["server"]
and response.header["server"] == "Micro-Web"
end,
login_combos = {
{username = "admin", password = "1234"}
},
login_check = function (host, port, path, user, pass)
return try_http_basic_login(host, port, path, user, pass, false)
end
})
---
--Remote consoles
---