1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 10:29:03 +00:00

o [NSE] Fixed a problem in oracle-brute that would fail due to connection

exhaustion. Fixed some debugging messages in the brute library [Patrik]
This commit is contained in:
patrik
2011-03-19 08:26:33 +00:00
parent e896e27e8a
commit b62cebc7b3
4 changed files with 30 additions and 17 deletions

View File

@@ -524,16 +524,7 @@ Engine =
if ( status ) then
-- Prevent locked accounts from appearing several times
if ( not(self.found_accounts) or self.found_accounts[response.username] == nil ) then
if ( response.username and #response.username > 0 ) then
stdnse.print_debug("Found valid password %s:%s on target %s",
response.username,
( response.password and #response.password > 0 ) and response.password or "<empty>",
self.host.ip )
else
stdnse.print_debug("Found valid password %s on target %s",
( response.password and #response.password > 0 ) and response.password or "<empty>",
self.host.ip )
end
stdnse.print_debug("Discovered account: %s", response:toString())
table.insert( valid_accounts, response:toString() )
self.found_accounts[response.username] = true