From 51444276c0e9572ec5a19a11949dceb34426754a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 10 Oct 2015 14:19:47 +0200 Subject: [PATCH] Better dealing with MySQL vs HSQLDB --- plugins/dbms/mysql/fingerprint.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/plugins/dbms/mysql/fingerprint.py b/plugins/dbms/mysql/fingerprint.py index a4e440df7..dbeedfa29 100644 --- a/plugins/dbms/mysql/fingerprint.py +++ b/plugins/dbms/mysql/fingerprint.py @@ -169,7 +169,7 @@ class Fingerprint(GenericFingerprint): infoMsg = "confirming %s" % DBMS.MYSQL logger.info(infoMsg) - result = inject.checkBooleanExpression("USER() LIKE USER()") + result = inject.checkBooleanExpression("SESSION_USER() LIKE USER()") if not result: warnMsg = "the back-end DBMS is not %s" % DBMS.MYSQL @@ -177,14 +177,6 @@ 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