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

Method getDbms

lib/core/common.py:247–263  ·  view source on GitHub ↗

Format the back-end DBMS fingerprint value and return its values formatted as a human readable string. @return: detected back-end DBMS based upon fingerprint techniques. @rtype: C{str}

(versions=None)

Source from the content-addressed store, hash-verified

245 # Get methods
246 @staticmethod
247 def getDbms(versions=None):
248 """
249 Format the back-end DBMS fingerprint value and return its
250 values formatted as a human readable string.
251
252 @return: detected back-end DBMS based upon fingerprint techniques.
253 @rtype: C{str}
254 """
255
256 if versions is None and Backend.getVersionList():
257 versions = Backend.getVersionList()
258
259 # NOTE: preventing ugly (e.g.) "back-end DBMS: MySQL Unknown"
260 if isListLike(versions) and UNKNOWN_DBMS_VERSION in versions:
261 versions = None
262
263 return Backend.getDbms() if versions is None else "%s %s" % (Backend.getDbms(), " and ".join(filterNone(versions)))
264
265 @staticmethod
266 def getErrorParsedDBMSes():

Callers 15

actionFunction · 0.45
_goDnsFunction · 0.45
getValueFunction · 0.45
getFieldsMethod · 0.45
preprocessFieldMethod · 0.45
getIdentifiedDbmsMethod · 0.45
isDbmsMethod · 0.45
isDbmsWithinMethod · 0.45
setDbmsFunction · 0.45
bisectionFunction · 0.45
readFileMethod · 0.45

Calls 3

getVersionListMethod · 0.80
isListLikeFunction · 0.70
filterNoneFunction · 0.70

Tested by

no test coverage detected