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

@ -387,7 +387,7 @@ ROTATING_CHARS = ('\\', '|', '|', '/', '-')
BIGARRAY_CHUNK_LENGTH = 4096
# Only console display last n table rows
TRIM_STDOUT_DUMP_SIZE = 1024
TRIM_STDOUT_DUMP_SIZE = 256
# Step used in ORDER BY technique used for finding the right number of columns in UNION query injections
ORDER_BY_STEP = 10

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