mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-19 20:43:30 +03:00
minor update
This commit is contained in:
parent
704e1a4e74
commit
f1f0828b28
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user