mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
If SQLAlchemy is available and it has problems while connecting then it should be smarter to not force the other (standard) method - if available
This commit is contained in:
@@ -36,7 +36,7 @@ class SQLAlchemy(GenericConnector):
|
||||
try:
|
||||
if not self.port and self.db:
|
||||
if not os.path.exists(self.db):
|
||||
raise SqlmapFilePathException, "missing database file '%s'" % self.db
|
||||
raise SqlmapFilePathException, "the provided database file '%s' does not exist" % self.db
|
||||
|
||||
_ = conf.direct.split("//", 1)
|
||||
conf.direct = "%s////%s" % (_[0], os.path.abspath(self.db))
|
||||
|
||||
Reference in New Issue
Block a user