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

Skip to content

Commit f1f0828

Browse files
committed
minor update
1 parent 704e1a4 commit f1f0828

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

lib/utils/hash.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)