mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
minor update
This commit is contained in:
@@ -603,8 +603,15 @@ def dictionaryAttack(attack_dict):
|
|||||||
|
|
||||||
if not kb.wordlist:
|
if not kb.wordlist:
|
||||||
while not kb.wordlist:
|
while not kb.wordlist:
|
||||||
|
|
||||||
|
# the slowest of all methods hence smaller default dict
|
||||||
|
if hash_regex in (HASH.ORACLE_OLD, HASH.WORDPRESS):
|
||||||
|
dictPaths = [paths.SMALL_DICT]
|
||||||
|
else:
|
||||||
|
dictPaths = [paths.WORDLIST]
|
||||||
|
|
||||||
message = "what dictionary do you want to use?\n"
|
message = "what dictionary do you want to use?\n"
|
||||||
message += "[1] default dictionary file (press Enter)\n"
|
message += "[1] default dictionary file '%s' (press Enter)\n" % dictPaths[0]
|
||||||
message += "[2] custom dictionary file\n"
|
message += "[2] custom dictionary file\n"
|
||||||
message += "[3] file with list of dictionary files"
|
message += "[3] file with list of dictionary files"
|
||||||
choice = readInput(message, default="1")
|
choice = readInput(message, default="1")
|
||||||
@@ -623,12 +630,6 @@ def dictionaryAttack(attack_dict):
|
|||||||
|
|
||||||
logger.info("using custom list of dictionaries")
|
logger.info("using custom list of dictionaries")
|
||||||
else:
|
else:
|
||||||
# It is the slowest of all methods hence smaller default dict
|
|
||||||
if hash_regex in (HASH.ORACLE_OLD, HASH.WORDPRESS):
|
|
||||||
dictPaths = [paths.SMALL_DICT]
|
|
||||||
else:
|
|
||||||
dictPaths = [paths.WORDLIST]
|
|
||||||
|
|
||||||
logger.info("using default dictionary")
|
logger.info("using default dictionary")
|
||||||
|
|
||||||
for dictPath in dictPaths:
|
for dictPath in dictPaths:
|
||||||
|
|||||||
Reference in New Issue
Block a user