mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-12 09:03:12 +03:00
Minor adjustment, still to work on the cookie urlencoding/decoding
This commit is contained in:
parent
578bcb9140
commit
b700485a1b
|
@ -77,7 +77,9 @@ def __setRequestParams():
|
||||||
|
|
||||||
# Perform checks on Cookie parameters
|
# Perform checks on Cookie parameters
|
||||||
if conf.cookie:
|
if conf.cookie:
|
||||||
urlDecodedCookie = urldecode(conf.cookie).replace("%", "%%")
|
# TODO: sure about decoding the cookie?
|
||||||
|
#urlDecodedCookie = urldecode(conf.cookie).replace("%", "%%")
|
||||||
|
urlDecodedCookie = conf.cookie.replace("%", "%%")
|
||||||
conf.parameters["Cookie"] = urlDecodedCookie
|
conf.parameters["Cookie"] = urlDecodedCookie
|
||||||
__paramDict = paramToDict("Cookie", urlDecodedCookie)
|
__paramDict = paramToDict("Cookie", urlDecodedCookie)
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,9 @@ class Connect:
|
||||||
requestMsg += " HTTP/1.1"
|
requestMsg += " HTTP/1.1"
|
||||||
|
|
||||||
if cookie:
|
if cookie:
|
||||||
cookie = urlencode(cookie).replace("%%", "%")
|
# TODO: sure about encoding the cookie?
|
||||||
|
#cookie = urlencode(cookie).replace("%%", "%")
|
||||||
|
cookie = cookie.replace("%%", "%")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Perform HTTP request
|
# Perform HTTP request
|
||||||
|
|
Loading…
Reference in New Issue
Block a user