diff --git a/nselib/data/http-default-accounts-fingerprints.lua b/nselib/data/http-default-accounts-fingerprints.lua index b5e826f15..d294128e6 100644 --- a/nselib/data/http-default-accounts-fingerprints.lua +++ b/nselib/data/http-default-accounts-fingerprints.lua @@ -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("

zebra technologies
", 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 ---