mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-12 15:45:48 +00:00
Fix for --proxy-cred with URL-encoded looking characters (e.g. '%41')
This commit is contained in:
parent
b6761e1825
commit
4f94d69783
2 changed files with 3 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ from lib.core.enums import OS
|
|||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue