diff --git a/lib/core/settings.py b/lib/core/settings.py index 723fd8a33..1a5d64d32 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -20,7 +20,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.10.7.231" +VERSION = "1.10.7.232" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/lib/parse/configfile.py b/lib/parse/configfile.py index 88f91ce78..9e104923e 100644 --- a/lib/parse/configfile.py +++ b/lib/parse/configfile.py @@ -84,14 +84,14 @@ def configFileParser(configFile): mandatory = False - for option in ("direct", "url", "logFile", "bulkFile", "googleDork", "requestFile", "wizard"): + for option in ("direct", "url", "logFile", "bulkFile", "googleDork", "requestFile", "openApiFile", "wizard"): if config.has_option("Target", option) and config.get("Target", option) or cmdLineOptions.get(option): mandatory = True break if not mandatory: errMsg = "missing a mandatory option in the configuration file " - errMsg += "(direct, url, logFile, bulkFile, googleDork, requestFile or wizard)" + errMsg += "(direct, url, logFile, bulkFile, googleDork, requestFile, openApiFile or wizard)" raise SqlmapMissingMandatoryOptionException(errMsg) for family, optionData in optDict.items(): diff --git a/lib/utils/har.py b/lib/utils/har.py index ebdef3bfd..c9a17b25a 100644 --- a/lib/utils/har.py +++ b/lib/utils/har.py @@ -116,7 +116,7 @@ class Request(object): "httpVersion": self.httpVersion, "method": self.method, "url": self.url, - "headers": [dict(name=key.capitalize(), value=value) for key, value in self.headers.items()], + "headers": [dict(name="-".join(_.capitalize() for _ in key.split("-")), value=value) for key, value in self.headers.items()], "cookies": [], "queryString": [], "headersSize": -1, @@ -202,7 +202,7 @@ class Response(object): "httpVersion": self.httpVersion, "status": self.status, "statusText": self.statusText, - "headers": [dict(name=key.capitalize(), value=value) for key, value in self.headers.items() if key.lower() != "uri"], + "headers": [dict(name="-".join(_.capitalize() for _ in key.split("-")), value=value) for key, value in self.headers.items() if key.lower() != "uri"], "cookies": [], "content": content, "headersSize": -1,