File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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.7.1.6 "
23+ VERSION = "1.7.1.7 "
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 )
Original file line number Diff line number Diff line change 3939from lib .core .exception import SqlmapMissingDependence
4040from plugins .generic .connector import Connector as GenericConnector
4141from thirdparty import six
42+ from thirdparty .six .moves import urllib as _urllib
4243
4344def getSafeExString (ex , encoding = None ): # Cross-referenced function
4445 raise NotImplementedError
@@ -50,6 +51,12 @@ def __init__(self, dialect=None):
5051 self .dialect = dialect
5152 self .address = conf .direct
5253
54+ if conf .dbmsUser :
55+ self .address = self .address .replace ("%s:" % conf .dbmsUser , "%s:" % _urllib .parse .quote (conf .dbmsUser ))
56+
57+ if conf .dbmsPass :
58+ self .address = self .address .replace (":%s@" % conf .dbmsPass , ":%s@" % _urllib .parse .quote (conf .dbmsPass ))
59+
5360 if self .dialect :
5461 self .address = re .sub (r"\A.+://" , "%s://" % self .dialect , self .address )
5562
You can’t perform that action at this time.
0 commit comments