1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41:29 +00:00

Report empty credentials as <blank>

This commit is contained in:
nnposter
2019-01-06 18:18:12 +00:00
parent 25db5fbb0d
commit 20b6bbda98

View File

@@ -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()