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

Propagate unpwdb errors to script output. Fixes #2011

This commit is contained in:
nnposter
2020-06-15 03:01:35 +00:00
parent 6a9e383f9f
commit ae0babda4d

View File

@@ -91,10 +91,14 @@ action = function( host, port )
local usernames, passwords local usernames, passwords
status, usernames = unpwdb.usernames() status, usernames = unpwdb.usernames()
if ( not(status) ) then return end if not status then
return stdnse.format_output(false, usernames)
end
status, passwords = unpwdb.passwords() status, passwords = unpwdb.passwords()
if ( not(status) ) then return end if not status then
return stdnse.format_output(false, passwords)
end
-- If the user explicitly does not disable SSL, enforce it -- If the user explicitly does not disable SSL, enforce it
if ( ( nmap.registry.args['pgsql.nossl'] == 'true' ) or if ( ( nmap.registry.args['pgsql.nossl'] == 'true' ) or