File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ read specific files on the file system and much more.
33
33
sqlmap is developed in <htmlurl url="http://www.python.org" name="Python">,
34
34
a dynamic object-oriented interpreted programming language.
35
35
This makes the tool independent from the operating system since it only
36
- requires the Python interpreter.
36
+ requires the Python interpreter version equal or above to 2.4 .
37
37
The interpreter is freely downloadable from its
38
38
<htmlurl url="http://python.org/download/" name="official site">.
39
39
To make it even easier, many GNU/Linux distributions come out of the box
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ def getPage(**kwargs):
74
74
if direct :
75
75
if "?" in url :
76
76
url , params = url .split ("?" )
77
- params = urlencode (params )
77
+ params = urlencode (params ). replace ( "%%" , "%" )
78
78
url = "%s?%s" % (url , params )
79
79
requestMsg += "?%s" % params
80
80
elif multipart :
@@ -100,7 +100,7 @@ def getPage(**kwargs):
100
100
101
101
try :
102
102
# Perform HTTP request
103
- headers = forgeHeaders (cookie , ua )
103
+ headers = forgeHeaders (urlencode ( cookie ). replace ( "%%" , "%" ) , ua )
104
104
req = urllib2 .Request (url , post , headers )
105
105
conn = urllib2 .urlopen (req )
106
106
@@ -113,7 +113,7 @@ def getPage(**kwargs):
113
113
if not cookieStr :
114
114
cookieStr = "Cookie: "
115
115
116
- cookie = str (cookie ). replace ( "%%" , "%" )
116
+ cookie = str (cookie )
117
117
index = cookie .index (" for " )
118
118
119
119
cookieStr += "%s; " % cookie [8 :index ]
You can’t perform that action at this time.
0 commit comments