minor update

This commit is contained in:
Miroslav Stampar 2011-10-26 09:14:18 +00:00
parent 64ca01ea0e
commit 18affca0bc

View File

@ -599,7 +599,7 @@ def dictionaryAttack(attack_dict):
except KeyboardInterrupt: except KeyboardInterrupt:
print print
processException = True 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) logger.warn(warnMsg)
while not retVal.empty(): while not retVal.empty():
@ -609,6 +609,9 @@ def dictionaryAttack(attack_dict):
else: else:
for ((user, hash_), kwargs) in attack_info: for ((user, hash_), kwargs) in attack_info:
if processException:
break
count = 0 count = 0
found = False found = False
@ -666,7 +669,7 @@ def dictionaryAttack(attack_dict):
except KeyboardInterrupt: except KeyboardInterrupt:
print print
processException = True 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) logger.warn(warnMsg)
while not retVal.empty(): while not retVal.empty():