Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 38978c3

Browse files
committed
Fix for an Issue #884
1 parent 0feb379 commit 38978c3

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ def checkFile(filename):
989989
Checks for file existence
990990
"""
991991

992-
if not os.path.isfile(filename):
992+
if filename is None or not os.path.isfile(filename):
993993
raise SqlmapFilePathException("unable to read file '%s'" % filename)
994994

995995
def banner():

lib/utils/hash.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ def dictionaryAttack(attack_dict):
750750
else:
751751
logger.info("using default dictionary")
752752

753+
dictPaths = filter(None, dictPaths)
754+
753755
for dictPath in dictPaths:
754756
checkFile(dictPath)
755757

0 commit comments

Comments
 (0)