From 20b6bbda989f8468edd136a8156ab435df96ff2c Mon Sep 17 00:00:00 2001 From: nnposter Date: Sun, 6 Jan 2019 18:18:12 +0000 Subject: [PATCH] Report empty credentials as --- scripts/http-default-accounts.nse | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/http-default-accounts.nse b/scripts/http-default-accounts.nse index 0402c5e91..6dc3e9d31 100644 --- a/scripts/http-default-accounts.nse +++ b/scripts/http-default-accounts.nse @@ -325,7 +325,8 @@ local function test_credentials (host, port, fingerprint, path) for _, login_combo in ipairs(fingerprint.login_combos) do local user = login_combo.username local pass = login_combo.password - stdnse.debug(2, "Trying login combo -> %s:%s", user, pass) + stdnse.debug(2, "Trying login combo -> %s:%s", + stdnse.string_or_blank(user), stdnse.string_or_blank(pass)) if fingerprint.login_check(host, port, path, user, pass) then stdnse.debug(1, "[%s] valid default credentials found.", fingerprint.name) local cred = stdnse.output_table()