mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 00:04:23 +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
|
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)
|
raise SqlmapFilePathException("unable to read file '%s'" % filename)
|
||||||
|
|
||||||
def banner():
|
def banner():
|
||||||
|
|
|
@ -750,6 +750,8 @@ def dictionaryAttack(attack_dict):
|
||||||
else:
|
else:
|
||||||
logger.info("using default dictionary")
|
logger.info("using default dictionary")
|
||||||
|
|
||||||
|
dictPaths = filter(None, dictPaths)
|
||||||
|
|
||||||
for dictPath in dictPaths:
|
for dictPath in dictPaths:
|
||||||
checkFile(dictPath)
|
checkFile(dictPath)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user