Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93cb75f commit 73e8a10Copy full SHA for 73e8a10
1 file changed
plugins/dbms/mysql/fingerprint.py
@@ -275,12 +275,13 @@ def checkDbmsOs(self, detailed=False):
275
infoMsg = "fingerprinting the back-end DBMS operating system"
276
logger.info(infoMsg)
277
278
- if inject.checkBooleanExpression("'/'=(SELECT MID(@@datadir, 1, 1))"):
+ result = inject.checkBooleanExpression("'/'=(SELECT MID(@@datadir, 1, 1))")
279
+ if result is True:
280
kb.os = "Linux"
- else:
281
+ elif result is False:
282
kb.os = "Windows"
283
- infoMsg = "the back-end DBMS operating system is %s" % kb.os
284
+ infoMsg = "the back-end DBMS operating system is %s" % (kb.os or "Unknown")
285
286
287
self.cleanup(onlyFileTbl=True)
0 commit comments