Improvement for H2 and Oracle

This commit is contained in:
Miroslav Štampar
2026-07-12 18:22:15 +02:00
parent 94e21844d7
commit 38ab43f29e
7 changed files with 88 additions and 21 deletions
+1 -1
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.96"
VERSION = "1.10.7.97"
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)
+6
View File
@@ -58,6 +58,9 @@ class Abstraction(Web, UDF, XP_cmdshell):
elif Backend.isDbms(DBMS.MSSQL):
self.xpCmdshellExecCmd(cmd, silent=silent)
elif Backend.isDbms(DBMS.H2):
self.h2ExecCmd(cmd, silent=silent)
else:
errMsg = "Feature not yet implemented for the back-end DBMS"
raise SqlmapUnsupportedFeatureException(errMsg)
@@ -77,6 +80,9 @@ class Abstraction(Web, UDF, XP_cmdshell):
elif Backend.isDbms(DBMS.MSSQL):
retVal = self.xpCmdshellEvalCmd(cmd, first, last)
elif Backend.isDbms(DBMS.H2):
retVal = self.h2EvalCmd(cmd, first, last)
else:
errMsg = "Feature not yet implemented for the back-end DBMS"
raise SqlmapUnsupportedFeatureException(errMsg)