fix for a bug reported by aboynes@gmail.com (@@datadir not available on MySQL 4)

This commit is contained in:
Miroslav Stampar 2011-04-21 17:33:07 +00:00
parent bd4fbb3251
commit e181d5412e

View File

@ -278,7 +278,7 @@ class Fingerprint(GenericFingerprint):
infoMsg = "fingerprinting the back-end DBMS operating system"
logger.info(infoMsg)
result = inject.checkBooleanExpression("'/'=(SELECT MID(@@datadir, 1, 1))")
result = inject.checkBooleanExpression("'W'=UPPER(MID(@@version_compile_os,1,1))")
if result:
kb.os = "Linux"