mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-02 20:54:13 +03:00
Minor fix (to accept -p cookie without need for raising --level / as it's already done for referer and user_agent)
This commit is contained in:
parent
b8ab37651c
commit
034e123b0c
|
@ -406,6 +406,7 @@ def start():
|
|||
skip &= not (place == PLACE.USER_AGENT and intersect(USER_AGENT_ALIASES, conf.testParameter, True))
|
||||
skip &= not (place == PLACE.REFERER and intersect(REFERER_ALIASES, conf.testParameter, True))
|
||||
skip &= not (place == PLACE.HOST and intersect(HOST_ALIASES, conf.testParameter, True))
|
||||
skip &= not (place == PLACE.COOKIE and intersect((PLACE.COOKIE,), conf.testParameter, True))
|
||||
|
||||
if skip:
|
||||
continue
|
||||
|
|
|
@ -545,6 +545,7 @@ def paramToDict(place, parameters=None):
|
|||
|
||||
condition = not conf.testParameter
|
||||
condition |= parameter in conf.testParameter
|
||||
condition |= place == PLACE.COOKIE and len(intersect((PLACE.COOKIE,), conf.testParameter, True)) > 0
|
||||
|
||||
if condition:
|
||||
testableParameters[parameter] = "=".join(parts[1:])
|
||||
|
|
Loading…
Reference in New Issue
Block a user