From fd9794276064e8b8932ffc4898af62c61fe98758 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 7 May 2019 15:31:47 +0200 Subject: [PATCH] Minor update --- lib/core/option.py | 2 +- lib/core/settings.py | 2 +- thirdparty/socks/socks.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/option.py b/lib/core/option.py index 9f3e8ee9a..74ee21214 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -2346,7 +2346,7 @@ def _checkTor(): except SqlmapConnectionException: page = None - if not page or 'Congratulations' not in page: + if not page or "Congratulations" not in page: errMsg = "it appears that Tor is not properly set. Please try using options '--tor-type' and/or '--tor-port'" raise SqlmapConnectionException(errMsg) else: diff --git a/lib/core/settings.py b/lib/core/settings.py index ee35f7d00..b5195869e 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.3.5.34" +VERSION = "1.3.5.35" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/thirdparty/socks/socks.py b/thirdparty/socks/socks.py index ac6569dc9..85a7ae90d 100644 --- a/thirdparty/socks/socks.py +++ b/thirdparty/socks/socks.py @@ -225,7 +225,7 @@ class socksocket(socket.socket): if self.__proxy[3]: # Resolve remotely ipaddr = None - req = req + chr(0x03).encode() + chr(len(destaddr)).encode() + destaddr + req = req + chr(0x03).encode() + chr(len(destaddr)).encode() + (destaddr if isinstance(destaddr, bytes) else destaddr.encode()) else: # Resolve locally ipaddr = socket.inet_aton(socket.gethostbyname(destaddr))