mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Minor bug fix (-d was not recognized as one of mandatory in case of config file)
This commit is contained in:
parent
1b3a98b8ef
commit
95e7ca02f0
|
@ -72,7 +72,8 @@ def configFileParser(configFile):
|
|||
errMsg = "missing a mandatory section 'Target' in the configuration file"
|
||||
raise SqlmapMissingMandatoryOptionException(errMsg)
|
||||
|
||||
condition = not config.has_option("Target", "url")
|
||||
condition = not config.has_option("Target", "direct")
|
||||
condition &= not config.has_option("Target", "url")
|
||||
condition &= not config.has_option("Target", "logFile")
|
||||
condition &= not config.has_option("Target", "bulkFile")
|
||||
condition &= not config.has_option("Target", "googleDork")
|
||||
|
@ -81,7 +82,7 @@ def configFileParser(configFile):
|
|||
|
||||
if condition:
|
||||
errMsg = "missing a mandatory option in the configuration file "
|
||||
errMsg += "(url, logFile, bulkFile, googleDork, requestFile or wizard)"
|
||||
errMsg += "(direct, url, logFile, bulkFile, googleDork, requestFile or wizard)"
|
||||
raise SqlmapMissingMandatoryOptionException(errMsg)
|
||||
|
||||
for family, optionData in optDict.items():
|
||||
|
|
Loading…
Reference in New Issue
Block a user