mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Fix for an Issue #884
This commit is contained in:
parent
0feb379b47
commit
38978c3e54
|
@ -989,7 +989,7 @@ def checkFile(filename):
|
|||
Checks for file existence
|
||||
"""
|
||||
|
||||
if not os.path.isfile(filename):
|
||||
if filename is None or not os.path.isfile(filename):
|
||||
raise SqlmapFilePathException("unable to read file '%s'" % filename)
|
||||
|
||||
def banner():
|
||||
|
|
|
@ -750,6 +750,8 @@ def dictionaryAttack(attack_dict):
|
|||
else:
|
||||
logger.info("using default dictionary")
|
||||
|
||||
dictPaths = filter(None, dictPaths)
|
||||
|
||||
for dictPath in dictPaths:
|
||||
checkFile(dictPath)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user