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:
Miroslav Stampar 2013-05-12 16:24:13 +02:00
parent b8ab37651c
commit 034e123b0c
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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:])