mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +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:
parent
ce075558de
commit
1aed246b69
3 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ action = function( host, port )
|
|||
|
||||
helper:Disconnect()
|
||||
|
||||
if ( status ) then
|
||||
if ( status and rs) then
|
||||
result = mssql.Util.FormatOutputTable( rs, true )
|
||||
result.name = username
|
||||
if ( RS_LIMIT > 0 ) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue