MCPcopy Create free account
hub / github.com/sqlmapproject/sqlmap / checkDbms

Method checkDbms

plugins/dbms/extremedb/fingerprint.py:61–90  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59 return value
60
61 def checkDbms(self):
62 if not conf.extensiveFp and Backend.isDbmsWithin(EXTREMEDB_ALIASES):
63 setDbms(DBMS.EXTREMEDB)
64 return True
65
66 infoMsg = "testing %s" % DBMS.EXTREMEDB
67 logger.info(infoMsg)
68
69 result = inject.checkBooleanExpression("signature(NULL)=usignature(NULL)")
70
71 if result:
72 infoMsg = "confirming %s" % DBMS.EXTREMEDB
73 logger.info(infoMsg)
74
75 result = inject.checkBooleanExpression("hashcode(NULL)>=0")
76
77 if not result:
78 warnMsg = "the back-end DBMS is not %s" % DBMS.EXTREMEDB
79 logger.warning(warnMsg)
80
81 return False
82
83 setDbms(DBMS.EXTREMEDB)
84
85 return True
86 else:
87 warnMsg = "the back-end DBMS is not %s" % DBMS.EXTREMEDB
88 logger.warning(warnMsg)
89
90 return False
91
92 def forceDbmsEnum(self):
93 conf.db = ("%s%s" % (DBMS.EXTREMEDB, METADB_SUFFIX)).replace(' ', '_')

Callers

nothing calls this directly

Calls 3

setDbmsFunction · 0.90
isDbmsWithinMethod · 0.80
infoMethod · 0.80

Tested by

no test coverage detected