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

Skip to content

Commit c293a6a

Browse files
committed
Fixes #2229 and #2230
1 parent b117501 commit c293a6a

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

lib/core/settings.py

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

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

thirdparty/socks/socks.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
PRINTABLE_PROXY_TYPES = dict(zip(PROXY_TYPES.values(), PROXY_TYPES.keys()))
7171

7272
_orgsocket = _orig_socket = socket.socket
73+
_orgcreateconnection = socket.create_connection
7374

7475
class ProxyError(IOError):
7576
"""
@@ -145,7 +146,12 @@ def wrap_module(module):
145146
else:
146147
raise GeneralProxyError("No default proxy specified")
147148

149+
def unwrap_module(module):
150+
module.socket.socket = _orgsocket
151+
module.socket.create_connection = _orgcreateconnection
152+
148153
wrapmodule = wrap_module
154+
unwrapmodule = unwrap_module
149155

150156
def create_connection(dest_pair, proxy_type=None, proxy_addr=None,
151157
proxy_port=None, proxy_rdns=True,

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ e60456db5380840a586654344003d4e6 lib/core/readlineng.py
4545
5ef56abb8671c2ca6ceecb208258e360 lib/core/replication.py
4646
99a2b496b9d5b546b335653ca801153f lib/core/revision.py
4747
7c15dd2777af4dac2c89cab6df17462e lib/core/session.py
48-
ecc7bdb84caadf1435a3f21b4cf19ef3 lib/core/settings.py
48+
d4200890061c99da6b976755b4aebd83 lib/core/settings.py
4949
7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py
5050
23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py
5151
c3ace7874a536d801f308cf1fd03df99 lib/core/target.py
@@ -349,7 +349,7 @@ ff80a22ee858f5331b0c088efa98b3ff thirdparty/prettyprint/prettyprint.py
349349
5c70f8e5f7353aedc6d8d21d4fb72b37 thirdparty/pydes/__init__.py
350350
a7f735641c5b695f3d6220fe7c91b030 thirdparty/pydes/pyDes.py
351351
d41d8cd98f00b204e9800998ecf8427e thirdparty/socks/__init__.py
352-
7cb5df774288a8d835494c8a72435cc0 thirdparty/socks/socks.py
352+
a2f0ee74ccc895150f310ef8d680edca thirdparty/socks/socks.py
353353
d41d8cd98f00b204e9800998ecf8427e thirdparty/termcolor/__init__.py
354354
ea649aae139d8551af513769dd913dbf thirdparty/termcolor/termcolor.py
355355
855372c870a23d46683f8aa39d75f6a1 thirdparty/xdot/__init__.py

0 commit comments

Comments
 (0)