mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-02 20:54:13 +03:00
Patch for an Issue #1013
This commit is contained in:
parent
6d13b67822
commit
6f211f9d3e
|
@ -71,8 +71,8 @@ def configFileParser(configFile):
|
||||||
try:
|
try:
|
||||||
config = UnicodeRawConfigParser()
|
config = UnicodeRawConfigParser()
|
||||||
config.readfp(configFP)
|
config.readfp(configFP)
|
||||||
except (MissingSectionHeaderError, ParsingError), ex:
|
except Exception, ex:
|
||||||
errMsg = "you have provided an invalid configuration file ('%s')" % str(ex)
|
errMsg = "you have provided an invalid and/or unreadable configuration file ('%s')" % str(ex)
|
||||||
raise SqlmapSyntaxException(errMsg)
|
raise SqlmapSyntaxException(errMsg)
|
||||||
|
|
||||||
if not config.has_section("Target"):
|
if not config.has_section("Target"):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user