first commit regarding Feature #144

This commit is contained in:
Miroslav Stampar
2010-09-22 11:56:35 +00:00
parent 540a9b391f
commit da8ae5578b
3 changed files with 16 additions and 3 deletions

View File

@@ -99,6 +99,8 @@ class Agent:
# Before identifing the injectable parameter
elif parameter == "User-Agent":
retValue = value.replace(value, newValue)
elif parameter == "URI":
retValue = value.replace('*', newValue)
else:
paramString = conf.parameters[place]

View File

@@ -83,6 +83,12 @@ def __setRequestParams():
conf.method = "POST"
if '*' in conf.url:
conf.parameters["URI"] = conf.url
conf.paramDict["URI"] = { "URI": conf.url } # similar as for User-Agent
conf.url = conf.url.replace('*', '')
__testableParameters = True
# Perform checks on Cookie parameters
if conf.cookie:
conf.parameters["Cookie"] = conf.cookie