Minor patch

This commit is contained in:
Miroslav Štampar 2026-07-19 14:46:23 +02:00
parent 8c86dc68a7
commit 267c20048d
2 changed files with 5 additions and 2 deletions

View file

@ -20,7 +20,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.10.7.129"
VERSION = "1.10.7.130"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
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)

View file

@ -72,7 +72,10 @@ class SQLAlchemy(GenericConnector):
raise SqlmapFilePathException("the provided database file '%s' does not exist" % self.db)
_ = self.address.split("//", 1)
self.address = "%s////%s" % (_[0], os.path.abspath(self.db))
# Note: SQLAlchemy's absolute-SQLite form is 'sqlite:///' + abspath (the abspath's own
# leading '/' completes the triple slash on POSIX). A 4th slash yields db '//path' (only
# tolerated on Linux by accident) and, on Windows, '/C:\...' which fails to open.
self.address = "%s///%s" % (_[0], os.path.abspath(self.db))
if self.dialect == "sqlite":
engine = _sqlalchemy.create_engine(self.address, connect_args={"check_same_thread": False})