Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 33c110a

Browse files
committed
Minor drei stuff
1 parent 43eedb6 commit 33c110a

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from lib.core.enums import OS
1818

1919
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
20-
VERSION = "1.3.4.44"
20+
VERSION = "1.3.4.45"
2121
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2222
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2323
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/core/testing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def _thread():
7474
):
7575
output = shellExec("python %s -u http://%s:%d/?id=1 --batch %s" % (os.path.join(os.path.dirname(__file__), "..", "..", "sqlmap.py"), address, port, options))
7676
if not all(check in output for check in checks):
77-
print output
7877
retVal = False
7978

8079
count += 1

thirdparty/multipart/multipartpost.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@
2525
import os
2626
import stat
2727
import sys
28-
import urllib
29-
import urllib2
3028

3129
from lib.core.compat import choose_boundary
3230
from lib.core.exception import SqlmapDataException
31+
from thirdparty.six.moves import urllib as _urllib
3332

3433
class Callable:
3534
def __init__(self, anycallable):
@@ -40,8 +39,8 @@ def __init__(self, anycallable):
4039
doseq = 1
4140

4241

43-
class MultipartPostHandler(urllib2.BaseHandler):
44-
handler_order = urllib2.HTTPHandler.handler_order - 10 # needs to run first
42+
class MultipartPostHandler(_urllib.request.BaseHandler):
43+
handler_order = _urllib.request.HTTPHandler.handler_order - 10 # needs to run first
4544

4645
def http_request(self, request):
4746
data = request.get_data()
@@ -61,7 +60,7 @@ def http_request(self, request):
6160
raise SqlmapDataException("not a valid non-string sequence or mapping object '%s'" % traceback)
6261

6362
if len(v_files) == 0:
64-
data = urllib.urlencode(v_vars, doseq)
63+
data = _urllib.parse.urlencode(v_vars, doseq)
6564
else:
6665
boundary, data = self.multipart_encode(v_vars, v_files)
6766
contenttype = "multipart/form-data; boundary=%s" % boundary

0 commit comments

Comments
 (0)