File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -603,8 +603,15 @@ def dictionaryAttack(attack_dict):
603603
604604 if not kb .wordlist :
605605 while not kb .wordlist :
606+
607+ # the slowest of all methods hence smaller default dict
608+ if hash_regex in (HASH .ORACLE_OLD , HASH .WORDPRESS ):
609+ dictPaths = [paths .SMALL_DICT ]
610+ else :
611+ dictPaths = [paths .WORDLIST ]
612+
606613 message = "what dictionary do you want to use?\n "
607- message += "[1] default dictionary file (press Enter)\n "
614+ message += "[1] default dictionary file '%s' (press Enter)\n " % dictPaths [ 0 ]
608615 message += "[2] custom dictionary file\n "
609616 message += "[3] file with list of dictionary files"
610617 choice = readInput (message , default = "1" )
@@ -623,12 +630,6 @@ def dictionaryAttack(attack_dict):
623630
624631 logger .info ("using custom list of dictionaries" )
625632 else :
626- # It is the slowest of all methods hence smaller default dict
627- if hash_regex in (HASH .ORACLE_OLD , HASH .WORDPRESS ):
628- dictPaths = [paths .SMALL_DICT ]
629- else :
630- dictPaths = [paths .WORDLIST ]
631-
632633 logger .info ("using default dictionary" )
633634
634635 for dictPath in dictPaths :
You can’t perform that action at this time.
0 commit comments