diff --git a/lib/core/option.py b/lib/core/option.py index 6500bed8c..fa848099f 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1374,7 +1374,8 @@ def _setHTTPHandlers(): if conf.proxyCred: # Reference: http://stackoverflow.com/questions/34079/how-to-specify-an-authenticated-proxy-for-a-python-http-connection - proxyString = "%s@" % conf.proxyCred + # Note: (raw) credentials have to be URL-encoded, as urllib decodes them (e.g. '%41' would become 'A') + proxyString = "%s@" % ':'.join(_urllib.parse.quote(_, safe="") for _ in conf.proxyCred.split(':', 1)) elif match: # Note: credentials from the proxy URL itself (kept URL-encoded, as urllib decodes them on its own) proxyString = "%s:%s@" % (match.group(1), match.group(2)) diff --git a/lib/core/settings.py b/lib/core/settings.py index 116f2bfd6..32a19bf9c 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.10.11.56" +VERSION = "1.10.11.57" 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)