Potential patch for #4853

This commit is contained in:
Miroslav Stampar 2021-10-11 18:01:34 +02:00
parent 18013bc8b2
commit e03404283c
2 changed files with 7 additions and 3 deletions

View File

@ -20,7 +20,7 @@ from thirdparty import six
from thirdparty.six import unichr as _unichr
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.5.10.13"
VERSION = "1.5.10.14"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

View File

@ -200,16 +200,16 @@ class Fingerprint(GenericFingerprint):
# reading information_schema on some platforms is causing annoying timeout exits
# Reference: http://bugs.mysql.com/bug.php?id=15855
kb.data.has_information_schema = True
# Determine if it is MySQL >= 8.0.0
if inject.checkBooleanExpression("ISNULL(JSON_STORAGE_FREE(NULL))"):
kb.data.has_information_schema = True
Backend.setVersion(">= 8.0.0")
setDbms("%s 8" % DBMS.MYSQL)
self.getBanner()
# Determine if it is MySQL >= 5.0.0
elif inject.checkBooleanExpression("ISNULL(TIMESTAMPADD(MINUTE,[RANDNUM],NULL))"):
kb.data.has_information_schema = True
Backend.setVersion(">= 5.0.0")
setDbms("%s 5" % DBMS.MYSQL)
self.getBanner()
@ -269,6 +269,8 @@ class Fingerprint(GenericFingerprint):
setDbms("%s 4" % DBMS.MYSQL)
self.getBanner()
kb.data.has_information_schema = False
if not conf.extensiveFp:
return True
@ -291,6 +293,8 @@ class Fingerprint(GenericFingerprint):
setDbms("%s 3" % DBMS.MYSQL)
self.getBanner()
kb.data.has_information_schema = False
return True
else:
warnMsg = "the back-end DBMS is not %s" % DBMS.MYSQL