mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-28 12:33:49 +03:00
Minor fixes.. should work also for Cookie now the % parsing
This commit is contained in:
parent
e2fedd3b46
commit
66136b48c0
|
@ -33,7 +33,7 @@ read specific files on the file system and much more.
|
|||
sqlmap is developed in <htmlurl url="http://www.python.org" name="Python">,
|
||||
a dynamic object-oriented interpreted programming language.
|
||||
This makes the tool independent from the operating system since it only
|
||||
requires the Python interpreter.
|
||||
requires the Python interpreter version equal or above to 2.4.
|
||||
The interpreter is freely downloadable from its
|
||||
<htmlurl url="http://python.org/download/" name="official site">.
|
||||
To make it even easier, many GNU/Linux distributions come out of the box
|
||||
|
|
|
@ -74,7 +74,7 @@ class Connect:
|
|||
if direct:
|
||||
if "?" in url:
|
||||
url, params = url.split("?")
|
||||
params = urlencode(params)
|
||||
params = urlencode(params).replace("%%", "%")
|
||||
url = "%s?%s" % (url, params)
|
||||
requestMsg += "?%s" % params
|
||||
elif multipart:
|
||||
|
@ -100,7 +100,7 @@ class Connect:
|
|||
|
||||
try:
|
||||
# Perform HTTP request
|
||||
headers = forgeHeaders(cookie, ua)
|
||||
headers = forgeHeaders(urlencode(cookie).replace("%%", "%"), ua)
|
||||
req = urllib2.Request(url, post, headers)
|
||||
conn = urllib2.urlopen(req)
|
||||
|
||||
|
@ -113,7 +113,7 @@ class Connect:
|
|||
if not cookieStr:
|
||||
cookieStr = "Cookie: "
|
||||
|
||||
cookie = str(cookie).replace("%%", "%")
|
||||
cookie = str(cookie)
|
||||
index = cookie.index(" for ")
|
||||
|
||||
cookieStr += "%s; " % cookie[8:index]
|
||||
|
|
Loading…
Reference in New Issue
Block a user