From 20575e01b92192a37293a1ce0137a16103661295 Mon Sep 17 00:00:00 2001 From: patrik Date: Fri, 30 Dec 2011 20:14:48 +0000 Subject: [PATCH] Fixed bug that would prevent brute library from stopping to guess passwords for an account, even when the correct password was found. [Patrik] --- nselib/brute.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/brute.lua b/nselib/brute.lua index e0e8d647a..c49682bec 100644 --- a/nselib/brute.lua +++ b/nselib/brute.lua @@ -500,7 +500,7 @@ Engine = self.threads[coroutine.running()].terminate = true return false end - until ( ( not(self.found_accounts) or not(self.found_accounts.username) ) and + until ( ( not(self.found_accounts) or not(self.found_accounts[username]) ) and ( self.options.max_guesses == 0 or not(self.account_guesses[username]) or self.options.max_guesses > self.account_guesses[username] ) )