Skip to content

Commit

Permalink
Report empty credentials as <blank>
Browse files Browse the repository at this point in the history
  • Loading branch information
nnposter committed Jan 6, 2019
1 parent 25db5fb commit 20b6bbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/http-default-accounts.nse
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 20b6bbd

Please sign in to comment.