mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
first commit regarding Feature #144
This commit is contained in:
parent
540a9b391f
commit
da8ae5578b
3 changed files with 16 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue