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

Method checkDbms

plugins/dbms/cubrid/fingerprint.py:60–94  ·  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(CUBRID_ALIASES):
62 setDbms(DBMS.CUBRID)
63
64 self.getBanner()
65
66 return True
67
68 infoMsg = "testing %s" % DBMS.CUBRID
69 logger.info(infoMsg)
70
71 result = inject.checkBooleanExpression("{} SUBSETEQ (CAST ({} AS SET))")
72
73 if result:
74 infoMsg = "confirming %s" % DBMS.CUBRID
75 logger.info(infoMsg)
76
77 result = inject.checkBooleanExpression("DRAND()<2")
78
79 if not result:
80 warnMsg = "the back-end DBMS is not %s" % DBMS.CUBRID
81 logger.warning(warnMsg)
82
83 return False
84
85 setDbms(DBMS.CUBRID)
86
87 self.getBanner()
88
89 return True
90 else:
91 warnMsg = "the back-end DBMS is not %s" % DBMS.CUBRID
92 logger.warning(warnMsg)
93
94 return False

Callers

nothing calls this directly

Calls 4

setDbmsFunction · 0.90
isDbmsWithinMethod · 0.80
infoMethod · 0.80
getBannerMethod · 0.45

Tested by

no test coverage detected