mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 21:21:33 +00:00
first commit regarding Feature #144
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user