mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-24 01:08:49 +01:00
Fix for an Issue #884
This commit is contained in:
parent
0feb379b47
commit
38978c3e54
2 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue