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

Method checkDbms

plugins/dbms/virtuoso/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(VIRTUOSO_ALIASES):
62 setDbms(DBMS.VIRTUOSO)
63 return True
64
65 infoMsg = "testing %s" % DBMS.VIRTUOSO
66 logger.info(infoMsg)
67
68 result = inject.checkBooleanExpression("GET_KEYWORD(NULL,NULL) IS NULL")
69
70 if result:
71 infoMsg = "confirming %s" % DBMS.VIRTUOSO
72 logger.info(infoMsg)
73
74 result = inject.checkBooleanExpression("RDF_NOW_IMPL() IS NOT NULL")
75
76 if not result:
77 warnMsg = "the back-end DBMS is not %s" % DBMS.VIRTUOSO
78 logger.warning(warnMsg)
79
80 return False
81
82 setDbms(DBMS.VIRTUOSO)
83
84 return True
85 else:
86 warnMsg = "the back-end DBMS is not %s" % DBMS.VIRTUOSO
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