File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1839,6 +1839,15 @@ class _(six.text_type):
1839
1839
if conf .retries :
1840
1840
conf .retries = min (conf .retries , MAX_CONNECT_RETRIES )
1841
1841
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
+
1842
1851
if conf .code :
1843
1852
conf .code = int (conf .code )
1844
1853
Original file line number Diff line number Diff line change 20
20
from thirdparty .six import unichr as _unichr
21
21
22
22
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23
- VERSION = "1.6.3.13 "
23
+ VERSION = "1.6.3.14 "
24
24
TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
25
25
TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
26
26
VERSION_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