mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Propagate unpwdb errors to script output. Fixes #2011
This commit is contained in:
parent
6a9e383f9f
commit
ae0babda4d
1 changed files with 6 additions and 2 deletions
|
|
@ -91,10 +91,14 @@ action = function( host, port )
|
|||
|
||||
local usernames, passwords
|
||||
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()
|
||||
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 ( ( nmap.registry.args['pgsql.nossl'] == 'true' ) or
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue