From fa4e86703566746849920097ab2239bea1b0e887 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 9 Oct 2015 14:17:13 +0200 Subject: [PATCH] Bug fix for MySQL fingerprinting (excluding HSQLDB MySQL look-alike) --- plugins/dbms/mysql/fingerprint.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/dbms/mysql/fingerprint.py b/plugins/dbms/mysql/fingerprint.py index 700badb4f..a4e440df7 100644 --- a/plugins/dbms/mysql/fingerprint.py +++ b/plugins/dbms/mysql/fingerprint.py @@ -177,6 +177,14 @@ class Fingerprint(GenericFingerprint): return False + result = inject.checkBooleanExpression("ROUNDMAGIC(NULL) IS NULL") + + if result: + warnMsg = "the back-end DBMS is not %s" % DBMS.MYSQL + logger.warn(warnMsg) + + return False + # reading information_schema on some platforms is causing annoying timeout exits # Reference: http://bugs.mysql.com/bug.php?id=15855