mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-23 16:42:02 +00:00
Fix for -p Cookie also testing whole Cookie header (in case of --cookie)
This commit is contained in:
parent
d0fc7512df
commit
ca2e847ef6
2 changed files with 3 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ from lib.core.enums import OS
|
|||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.10.11.51"
|
||||
VERSION = "1.10.11.52"
|
||||
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)
|
||||
|
|
|
|||
|
|
@ -438,7 +438,8 @@ def _setRequestParams():
|
|||
testableParameters = True
|
||||
|
||||
else:
|
||||
condition = intersect(conf.testParameter, [httpHeader], True)
|
||||
# Note: in case of --cookie, its (Cookie) parameters are tested separately (i.e. not the whole header)
|
||||
condition = intersect(conf.testParameter, [httpHeader], True) and not (conf.cookie and httpHeader.upper() == HTTP_HEADER.COOKIE.upper())
|
||||
|
||||
if condition:
|
||||
conf.parameters[PLACE.CUSTOM_HEADER] = str(conf.httpHeaders)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue