bug fix (http://dev.mysql.com/doc/refman/5.0/es/news-5-0-11.html - "Added support of where clause for queries with FROM DUAL")

This commit is contained in:
Miroslav Stampar 2010-12-22 00:20:56 +00:00
parent d974a966b8
commit cb61401c18

View File

@ -209,7 +209,7 @@ class Fingerprint(GenericFingerprint):
# Check if it is MySQL >= 5.0.0 and < 5.1.2
elif inject.checkBooleanExpression("@@hostname=@@hostname"):
kb.dbmsVersion = [">= 5.0.38", "< 5.1.2"]
elif inject.checkBooleanExpression("%s=(SELECT %s FROM DUAL)" % (randInt, randInt)):
elif not inject.checkBooleanExpression("%s=(SELECT %s FROM DUAL WHERE 1=2)" % (randInt, randInt)):
kb.dbmsVersion = [">= 5.0.11", "< 5.0.38"]
elif inject.checkBooleanExpression("DATABASE() LIKE SCHEMA()"):
kb.dbmsVersion = [">= 5.0.2", "< 5.0.11"]