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

Skip to content

Commit 95e7ca0

Browse files
committed
Minor bug fix (-d was not recognized as one of mandatory in case of config file)
1 parent 1b3a98b commit 95e7ca0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/parse/configfile.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ def configFileParser(configFile):
7272
errMsg = "missing a mandatory section 'Target' in the configuration file"
7373
raise SqlmapMissingMandatoryOptionException(errMsg)
7474

75-
condition = not config.has_option("Target", "url")
75+
condition = not config.has_option("Target", "direct")
76+
condition &= not config.has_option("Target", "url")
7677
condition &= not config.has_option("Target", "logFile")
7778
condition &= not config.has_option("Target", "bulkFile")
7879
condition &= not config.has_option("Target", "googleDork")
@@ -81,7 +82,7 @@ def configFileParser(configFile):
8182

8283
if condition:
8384
errMsg = "missing a mandatory option in the configuration file "
84-
errMsg += "(url, logFile, bulkFile, googleDork, requestFile or wizard)"
85+
errMsg += "(direct, url, logFile, bulkFile, googleDork, requestFile or wizard)"
8586
raise SqlmapMissingMandatoryOptionException(errMsg)
8687

8788
for family, optionData in optDict.items():

0 commit comments

Comments
 (0)