From 670a90fae33538d56aafa7608049899cc4874bb8 Mon Sep 17 00:00:00 2001 From: nnposter Date: Sat, 1 Oct 2016 00:27:44 +0000 Subject: [PATCH] Adds a missing check for OpenSSL to one of the fingerprints --- nselib/data/http-default-accounts-fingerprints.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nselib/data/http-default-accounts-fingerprints.lua b/nselib/data/http-default-accounts-fingerprints.lua index 381c5af8d..d6f50b2fa 100644 --- a/nselib/data/http-default-accounts-fingerprints.lua +++ b/nselib/data/http-default-accounts-fingerprints.lua @@ -673,7 +673,6 @@ table.insert(fingerprints, { {path = "/"} }, target_check = function (host, port, path, response) - -- This fingerprint needs OpenSSL for MD5 return have_openssl and response.status == 200 and response.header["server"] @@ -720,14 +719,16 @@ table.insert(fingerprints, { -- once the http library adds support for gzip encoding. Don't forget -- to change url.absolute() argument from "../" to "api/" in login_check. --target_check = function (host, port, path, response) - -- return response.status == 200 + -- return have_openssl + -- and response.status == 200 -- and response.body -- and response.body:find("brandStrings", 1, true) -- and response.body:find("checkAuthentication", 1, true) -- and response.body:find("hp stuff init", 1, true) --end, 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"]:find("^0 %({.*systemName:.*,%s*controller:.*}%)") end,