mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Implementation for an Issue #2485
This commit is contained in:
@@ -766,20 +766,20 @@ def dictionaryAttack(attack_dict):
|
||||
message += "[1] default dictionary file '%s' (press Enter)\n" % dictPaths[0]
|
||||
message += "[2] custom dictionary file\n"
|
||||
message += "[3] file with list of dictionary files"
|
||||
choice = readInput(message, default="1")
|
||||
choice = readInput(message, default='1')
|
||||
|
||||
try:
|
||||
if choice == "2":
|
||||
if choice == '2':
|
||||
message = "what's the custom dictionary's location?\n"
|
||||
dictPaths = [readInput(message)]
|
||||
|
||||
logger.info("using custom dictionary")
|
||||
elif choice == "3":
|
||||
_ = readInput(message)
|
||||
if _:
|
||||
dictPaths = [readInput(message)]
|
||||
logger.info("using custom dictionary")
|
||||
elif choice == '3':
|
||||
message = "what's the list file location?\n"
|
||||
listPath = readInput(message)
|
||||
checkFile(listPath)
|
||||
dictPaths = getFileItems(listPath)
|
||||
|
||||
logger.info("using custom list of dictionaries")
|
||||
else:
|
||||
logger.info("using default dictionary")
|
||||
|
||||
Reference in New Issue
Block a user