Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3b74e99

Browse files
committed
Minor update (support for MariaDB)
1 parent 439fff6 commit 3b74e99

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

lib/core/session.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def setDbms(dbms):
3232
dbms = _.group(1)
3333

3434
Backend.setDbms(dbms)
35-
3635
logger.info("the back-end DBMS is %s" % Backend.getDbms())
3736

3837
def setOs():

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.5.19"
22+
VERSION = "1.0.5.20"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

plugins/dbms/mysql/fingerprint.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ def getFingerprint(self):
103103
value += "back-end DBMS: "
104104
actVer = Format.getDbms()
105105

106+
if inject.checkBooleanExpression("@@USERSTAT LIKE @@USERSTAT"):
107+
actVer += " (MariaDB fork)"
108+
106109
if not conf.extensiveFp:
107110
value += actVer
108111
return value

xml/errors.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<error regexp="Warning.*mysql_.*"/>
88
<error regexp="MySqlException \(0x"/>
99
<error regexp="valid MySQL result"/>
10-
<error regexp="check the manual that corresponds to your MySQL server version"/>
10+
<error regexp="check the manual that corresponds to your (MySQL|MariaDB) server version"/>
1111
<error regexp="MySqlClient\."/>
1212
<error regexp="com\.mysql\.jdbc\.exceptions"/>
1313
</dbms>

0 commit comments

Comments
 (0)