File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 387387BIGARRAY_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
393393ORDER_BY_STEP = 10
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments