Minor update (support for MariaDB)

This commit is contained in:
Miroslav Stampar 2016-05-11 15:47:35 +02:00
parent 439fff684e
commit 3b74e99576
4 changed files with 5 additions and 3 deletions

View File

@ -32,7 +32,6 @@ def setDbms(dbms):
dbms = _.group(1) dbms = _.group(1)
Backend.setDbms(dbms) Backend.setDbms(dbms)
logger.info("the back-end DBMS is %s" % Backend.getDbms()) logger.info("the back-end DBMS is %s" % Backend.getDbms())
def setOs(): def setOs():

View File

@ -19,7 +19,7 @@ from lib.core.enums import OS
from lib.core.revision import getRevisionNumber from lib.core.revision import getRevisionNumber
# sqlmap version (<major>.<minor>.<month>.<monthly commit>) # sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.0.5.19" VERSION = "1.0.5.20"
REVISION = getRevisionNumber() REVISION = getRevisionNumber()
STABLE = VERSION.count('.') <= 2 STABLE = VERSION.count('.') <= 2
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev") VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

View File

@ -103,6 +103,9 @@ class Fingerprint(GenericFingerprint):
value += "back-end DBMS: " value += "back-end DBMS: "
actVer = Format.getDbms() actVer = Format.getDbms()
if inject.checkBooleanExpression("@@USERSTAT LIKE @@USERSTAT"):
actVer += " (MariaDB fork)"
if not conf.extensiveFp: if not conf.extensiveFp:
value += actVer value += actVer
return value return value

View File

@ -7,7 +7,7 @@
<error regexp="Warning.*mysql_.*"/> <error regexp="Warning.*mysql_.*"/>
<error regexp="MySqlException \(0x"/> <error regexp="MySqlException \(0x"/>
<error regexp="valid MySQL result"/> <error regexp="valid MySQL result"/>
<error regexp="check the manual that corresponds to your MySQL server version"/> <error regexp="check the manual that corresponds to your (MySQL|MariaDB) server version"/>
<error regexp="MySqlClient\."/> <error regexp="MySqlClient\."/>
<error regexp="com\.mysql\.jdbc\.exceptions"/> <error regexp="com\.mysql\.jdbc\.exceptions"/>
</dbms> </dbms>