Skip to content

Commit e034042

Browse files
committed
Potential patch for #4853
1 parent 18013bc commit e034042

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.5.10.13"
23+
VERSION = "1.5.10.14"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

plugins/dbms/mysql/fingerprint.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,16 +200,16 @@ def checkDbms(self):
200200
# reading information_schema on some platforms is causing annoying timeout exits
201201
# Reference: http://bugs.mysql.com/bug.php?id=15855
202202

203+
kb.data.has_information_schema = True
204+
203205
# Determine if it is MySQL >= 8.0.0
204206
if inject.checkBooleanExpression("ISNULL(JSON_STORAGE_FREE(NULL))"):
205-
kb.data.has_information_schema = True
206207
Backend.setVersion(">= 8.0.0")
207208
setDbms("%s 8" % DBMS.MYSQL)
208209
self.getBanner()
209210

210211
# Determine if it is MySQL >= 5.0.0
211212
elif inject.checkBooleanExpression("ISNULL(TIMESTAMPADD(MINUTE,[RANDNUM],NULL))"):
212-
kb.data.has_information_schema = True
213213
Backend.setVersion(">= 5.0.0")
214214
setDbms("%s 5" % DBMS.MYSQL)
215215
self.getBanner()
@@ -269,6 +269,8 @@ def checkDbms(self):
269269
setDbms("%s 4" % DBMS.MYSQL)
270270
self.getBanner()
271271

272+
kb.data.has_information_schema = False
273+
272274
if not conf.extensiveFp:
273275
return True
274276

@@ -291,6 +293,8 @@ def checkDbms(self):
291293
setDbms("%s 3" % DBMS.MYSQL)
292294
self.getBanner()
293295

296+
kb.data.has_information_schema = False
297+
294298
return True
295299
else:
296300
warnMsg = "the back-end DBMS is not %s" % DBMS.MYSQL

0 commit comments

Comments
 (0)