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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user