mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
minor update
This commit is contained in:
parent
9c1d1ca5d8
commit
d64c0af461
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user