mirror of
https://github.com/nmap/nmap.git
synced 2025-12-25 00:49:01 +00:00
fixed bug in authentication encryption function as reported by Sergey
http://seclists.org/nmap-dev/2010/q4/83 changed the way the library reports "Must change password at next logon" fixed bug in ms-sql-hasdbaccess that would occur if no rows were returned [Patrik]
This commit is contained in:
@@ -54,7 +54,7 @@ action = function( host, port )
|
||||
status, result = helper:Login( username, password, "tempdb", host.ip )
|
||||
helper:Disconnect()
|
||||
|
||||
if status then
|
||||
if ( status ) or ( "Must change password at next logon" == result ) then
|
||||
-- Add credentials for other mysql scripts to use
|
||||
table.insert( valid_accounts, string.format("%s:%s => %s", username, password:len()>0 and password or "<empty>", result ) )
|
||||
-- don't add accounts that need to change passwords to the registry
|
||||
|
||||
Reference in New Issue
Block a user