From 18affca0bcc99504ff4ae58d5dbae5629b2b3929 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 26 Oct 2011 09:14:18 +0000 Subject: [PATCH] minor update --- lib/utils/hash.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/utils/hash.py b/lib/utils/hash.py index cfea8b42d..e48aab6fb 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -599,7 +599,7 @@ def dictionaryAttack(attack_dict): except KeyboardInterrupt: print processException = True - warnMsg = "user aborted during dictionary-based attack phase" + warnMsg = "user aborted during dictionary-based attack phase (Ctrl+C was pressed)" logger.warn(warnMsg) while not retVal.empty(): @@ -609,6 +609,9 @@ def dictionaryAttack(attack_dict): else: for ((user, hash_), kwargs) in attack_info: + if processException: + break + count = 0 found = False @@ -666,7 +669,7 @@ def dictionaryAttack(attack_dict): except KeyboardInterrupt: print processException = True - warnMsg = "user aborted during dictionary-based attack phase" + warnMsg = "user aborted during dictionary-based attack phase (Ctrl+C was pressed)" logger.warn(warnMsg) while not retVal.empty():