mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 02:53:46 +03:00
Fixes #4870
This commit is contained in:
parent
d0d4cf4f6d
commit
1be7a5aea8
|
@ -20,7 +20,7 @@ from thirdparty import six
|
||||||
from thirdparty.six import unichr as _unichr
|
from thirdparty.six import unichr as _unichr
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.7.1.6"
|
VERSION = "1.7.1.7"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
|
@ -39,6 +39,7 @@ from lib.core.exception import SqlmapFilePathException
|
||||||
from lib.core.exception import SqlmapMissingDependence
|
from lib.core.exception import SqlmapMissingDependence
|
||||||
from plugins.generic.connector import Connector as GenericConnector
|
from plugins.generic.connector import Connector as GenericConnector
|
||||||
from thirdparty import six
|
from thirdparty import six
|
||||||
|
from thirdparty.six.moves import urllib as _urllib
|
||||||
|
|
||||||
def getSafeExString(ex, encoding=None): # Cross-referenced function
|
def getSafeExString(ex, encoding=None): # Cross-referenced function
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
@ -50,6 +51,12 @@ class SQLAlchemy(GenericConnector):
|
||||||
self.dialect = dialect
|
self.dialect = dialect
|
||||||
self.address = conf.direct
|
self.address = conf.direct
|
||||||
|
|
||||||
|
if conf.dbmsUser:
|
||||||
|
self.address = self.address.replace("%s:" % conf.dbmsUser, "%s:" % _urllib.parse.quote(conf.dbmsUser))
|
||||||
|
|
||||||
|
if conf.dbmsPass:
|
||||||
|
self.address = self.address.replace(":%s@" % conf.dbmsPass, ":%s@" % _urllib.parse.quote(conf.dbmsPass))
|
||||||
|
|
||||||
if self.dialect:
|
if self.dialect:
|
||||||
self.address = re.sub(r"\A.+://", "%s://" % self.dialect, self.address)
|
self.address = re.sub(r"\A.+://", "%s://" % self.dialect, self.address)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user