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

Method checkDbms

plugins/dbms/cache/fingerprint.py:79–113  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

77 return value
78
79 def checkDbms(self):
80 if not conf.extensiveFp and Backend.isDbmsWithin(CACHE_ALIASES):
81 setDbms(DBMS.CACHE)
82
83 self.getBanner()
84
85 return True
86
87 infoMsg = "testing %s" % DBMS.CACHE
88 logger.info(infoMsg)
89
90 result = inject.checkBooleanExpression("$LISTLENGTH(NULL) IS NULL")
91
92 if result:
93 infoMsg = "confirming %s" % DBMS.CACHE
94 logger.info(infoMsg)
95
96 result = inject.checkBooleanExpression("%EXTERNAL %INTERNAL NULL IS NULL")
97
98 if not result:
99 warnMsg = "the back-end DBMS is not %s" % DBMS.CACHE
100 logger.warning(warnMsg)
101
102 return False
103
104 setDbms(DBMS.CACHE)
105
106 self.getBanner()
107
108 return True
109 else:
110 warnMsg = "the back-end DBMS is not %s" % DBMS.CACHE
111 logger.warning(warnMsg)
112
113 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