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

[NSE] Adds new fingerprints to http-default-accounts for Hikvision cameras and NUOO DVRs

This commit is contained in:
paulino
2017-12-10 06:20:17 +00:00
parent 42fc53fbbf
commit b8df27778f
2 changed files with 42 additions and 0 deletions

View File

@@ -1129,6 +1129,45 @@ table.insert(fingerprints, {
end
})
table.insert(fingerprints, {
name = "Hikvision DS-XXX Network Camera",
category = "security",
paths = {
{path = "/PSIA/Custom/SelfExt/userCheck"},
},
target_check = function (host, port, path, response)
return response.header["server"] == "App-webs/"
end,
login_combos = {
{username = "admin", password = "12345"},
},
login_check = function (host, port, path, user, pass)
return try_http_basic_login(host, port, path, user, pass, false)
end
})
table.insert(fingerprints, {
name = "NUOO DVR",
category = "security",
paths = {
{path = "/"},
},
target_check = function (host, port, path, response)
return response.header['server'] and response.header["server"]:find("lighttpd")
and response.body and response.body:lower():find("<title>network video recorder login</title>")
end,
login_combos = {
{username = "admin", password = "admin"},
},
login_check = function (host, port, path, user, pass)
local resp = http_post_simple(host, port,
url.absolute(path, "login.php"), nil,
{language="en", user=user, pass=pass,submit="Login"})
if resp.status == 302 and not(resp.body:find("loginfail")) then return true end
end
})
---
--Industrial systems
---