Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d64c0af

Browse files
committed
minor update
1 parent 9c1d1ca commit d64c0af

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@
387387
BIGARRAY_CHUNK_LENGTH = 4096
388388

389389
# Only console display last n table rows
390-
TRIM_STDOUT_DUMP_SIZE = 1024
390+
TRIM_STDOUT_DUMP_SIZE = 256
391391

392392
# Step used in ORDER BY technique used for finding the right number of columns in UNION query injections
393393
ORDER_BY_STEP = 10

lib/utils/hash.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ def dictionaryAttack(attack_dict):
474474
logger.info(infoMsg)
475475

476476
for hash_regex in hash_regexes:
477+
items = set()
477478
attack_info = []
478479

479480
for (user, hashes) in attack_dict.items():
@@ -497,8 +498,9 @@ def dictionaryAttack(attack_dict):
497498
elif hash_regex in (HASH.CRYPT_GENERIC):
498499
item = [(user, hash_), {'salt': hash_[0:2]}]
499500

500-
if item and item not in attack_info:
501+
if item and repr(item) not in items:
501502
attack_info.append(item)
503+
items.add(repr(item))
502504

503505
if not attack_info:
504506
continue

0 commit comments

Comments
 (0)