File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 2020from 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 "
2424TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2525TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2626VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
You can’t perform that action at this time.
0 commit comments