From 99a3a3b89c7b87280159d62b793eaa24c90ed3a6 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 17 Jan 2011 09:41:25 +0000 Subject: [PATCH] minor fix (break if all found) --- lib/utils/hash.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/utils/hash.py b/lib/utils/hash.py index a6d039fc4..0449829ea 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -357,7 +357,13 @@ def dictionaryAttack(attack_dict): count = 0 for suffix in suffix_list: + if not attack_info: + break + for word in kb.wordlist: + if not attack_info: + break + count += 1 if suffix: