Skip to content

Commit e91b1a0

Browse files
committed
Fixes #5032
1 parent 439d1cc commit e91b1a0

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

lib/core/option.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1839,6 +1839,15 @@ class _(six.text_type):
18391839
if conf.retries:
18401840
conf.retries = min(conf.retries, MAX_CONNECT_RETRIES)
18411841

1842+
if conf.url:
1843+
match = re.search(r"\A(\w+://)?([^/@?]+)@", conf.url)
1844+
if match:
1845+
credentials = match.group(2)
1846+
conf.url = conf.url.replace("%s@" % credentials, "", 1)
1847+
1848+
conf.authType = AUTH_TYPE.BASIC
1849+
conf.authCred = credentials if ':' in credentials else "%s:" % credentials
1850+
18421851
if conf.code:
18431852
conf.code = int(conf.code)
18441853

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

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

0 commit comments

Comments
 (0)