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

Adds a missing check for OpenSSL to one of the fingerprints

This commit is contained in:
nnposter
2016-10-01 00:27:44 +00:00
parent 8be2332c54
commit 670a90fae3

View File

@@ -673,7 +673,6 @@ table.insert(fingerprints, {
{path = "/"} {path = "/"}
}, },
target_check = function (host, port, path, response) target_check = function (host, port, path, response)
-- This fingerprint needs OpenSSL for MD5
return have_openssl return have_openssl
and response.status == 200 and response.status == 200
and response.header["server"] and response.header["server"]
@@ -720,14 +719,16 @@ table.insert(fingerprints, {
-- once the http library adds support for gzip encoding. Don't forget -- once the http library adds support for gzip encoding. Don't forget
-- to change url.absolute() argument from "../" to "api/" in login_check. -- to change url.absolute() argument from "../" to "api/" in login_check.
--target_check = function (host, port, path, response) --target_check = function (host, port, path, response)
-- return response.status == 200 -- return have_openssl
-- and response.status == 200
-- and response.body -- and response.body
-- and response.body:find("brandStrings", 1, true) -- and response.body:find("brandStrings", 1, true)
-- and response.body:find("checkAuthentication", 1, true) -- and response.body:find("checkAuthentication", 1, true)
-- and response.body:find("hp stuff init", 1, true) -- and response.body:find("hp stuff init", 1, true)
--end, --end,
target_check = function (host, port, path, response) target_check = function (host, port, path, response)
return response.status == 200 return have_openssl
and response.status == 200
and response.header["command-status"] and response.header["command-status"]
and response.header["command-status"]:find("^0 %({.*systemName:.*,%s*controller:.*}%)") and response.header["command-status"]:find("^0 %({.*systemName:.*,%s*controller:.*}%)")
end, end,