diff --git a/lib/core/option.py b/lib/core/option.py index 5a235f44c..9d7345274 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1641,7 +1641,11 @@ def _setHTTPExtraHeaders(): header, value = (_.lstrip() for _ in headerValue.split(":", 1)) if header and value: - conf.httpHeaders.append((header, value)) + # Note: Cookie header provided this way is treated as --cookie (i.e. its parameters become testable) + if header.upper() == HTTP_HEADER.COOKIE.upper() and not conf.cookie: + conf.cookie = value + else: + conf.httpHeaders.append((header, value)) else: errMsg = "invalid header value: %s. Valid header format is 'name:value'" % repr(headerValue).lstrip('u') raise SqlmapSyntaxException(errMsg) diff --git a/lib/core/settings.py b/lib/core/settings.py index 851ac0b27..2493859f8 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.10.11.76" +VERSION = "1.10.11.77" 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)