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

Method currentDb

lib/core/dump.py:177–183  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

175 self.string("current user", data, content_type=CONTENT_TYPE.CURRENT_USER)
176
177 def currentDb(self, data):
178 if Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.PGSQL, DBMS.HSQLDB, DBMS.H2, DBMS.MONETDB, DBMS.VERTICA, DBMS.CRATEDB, DBMS.CACHE, DBMS.FRONTBASE):
179 self.string("current database (equivalent to schema on %s)" % Backend.getIdentifiedDbms(), data, content_type=CONTENT_TYPE.CURRENT_DB)
180 elif Backend.getIdentifiedDbms() in (DBMS.ALTIBASE, DBMS.DB2, DBMS.MIMERSQL, DBMS.MAXDB, DBMS.VIRTUOSO):
181 self.string("current database (equivalent to owner on %s)" % Backend.getIdentifiedDbms(), data, content_type=CONTENT_TYPE.CURRENT_DB)
182 else:
183 self.string("current database", data, content_type=CONTENT_TYPE.CURRENT_DB)
184
185 def hostname(self, data):
186 self.string("hostname", data, content_type=CONTENT_TYPE.HOSTNAME)

Callers 1

actionFunction · 0.80

Calls 2

stringMethod · 0.95
getIdentifiedDbmsMethod · 0.80

Tested by

no test coverage detected