minor update

This commit is contained in:
Miroslav Stampar
2011-10-26 14:31:00 +00:00
parent 9c1d1ca5d8
commit d64c0af461
2 changed files with 4 additions and 2 deletions

View File

@@ -474,6 +474,7 @@ def dictionaryAttack(attack_dict):
logger.info(infoMsg)
for hash_regex in hash_regexes:
items = set()
attack_info = []
for (user, hashes) in attack_dict.items():
@@ -497,8 +498,9 @@ def dictionaryAttack(attack_dict):
elif hash_regex in (HASH.CRYPT_GENERIC):
item = [(user, hash_), {'salt': hash_[0:2]}]
if item and item not in attack_info:
if item and repr(item) not in items:
attack_info.append(item)
items.add(repr(item))
if not attack_info:
continue