MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / checkDbms

Method checkDbms

plugins/dbms/frontbase/fingerprint.py:60–89  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

58 return value
59
60 def checkDbms(self):
61 if not conf.extensiveFp and Backend.isDbmsWithin(FRONTBASE_ALIASES):
62 setDbms(DBMS.FRONTBASE)
63 return True
64
65 infoMsg = "testing %s" % DBMS.FRONTBASE
66 logger.info(infoMsg)
67
68 result = inject.checkBooleanExpression("(SELECT degradedTransactions FROM INFORMATION_SCHEMA.IO_STATISTICS)>=0")
69
70 if result:
71 infoMsg = "confirming %s" % DBMS.FRONTBASE
72 logger.info(infoMsg)
73
74 result = inject.checkBooleanExpression("(SELECT TOP (0,1) file_version FROM INFORMATION_SCHEMA.FRAGMENTATION)>=0")
75
76 if not result:
77 warnMsg = "the back-end DBMS is not %s" % DBMS.FRONTBASE
78 logger.warning(warnMsg)
79
80 return False
81
82 setDbms(DBMS.FRONTBASE)
83
84 return True
85 else:
86 warnMsg = "the back-end DBMS is not %s" % DBMS.FRONTBASE
87 logger.warning(warnMsg)
88
89 return False

Callers

nothing calls this directly

Calls 3

setDbmsFunction · 0.90
isDbmsWithinMethod · 0.80
infoMethod · 0.80

Tested by

no test coverage detected