From 24aadbd850ff6d4a1754ce924124d33a593efa0c Mon Sep 17 00:00:00 2001 From: Ryan Young Date: Sun, 15 Dec 2019 08:06:26 -0700 Subject: [PATCH] Support IPv6 literals ("[::1]:8080") in the proxy switch. (#4041) --- lib/core/option.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/option.py b/lib/core/option.py index 7e6cac63d..24eb466e3 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -995,7 +995,7 @@ def _setHTTPHandlers(): errMsg = "invalid proxy address '%s' ('%s')" % (conf.proxy, getSafeExString(ex)) raise SqlmapSyntaxException(errMsg) - hostnamePort = _.netloc.split(":") + hostnamePort = _.netloc.rsplit(":", 1) scheme = _.scheme.upper() hostname = hostnamePort[0]