mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-12 02:22:55 +00:00
Improvement for H2 and Oracle
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user