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

Method getIdentifiedDbms

lib/core/common.py:506–531  ·  view source on GitHub ↗

This functions is called to: 1. Sort the tests, getSortedInjectionTests() - detection phase. 2. Etc.

()

Source from the content-addressed store, hash-verified

504
505 @staticmethod
506 def getIdentifiedDbms():
507 """
508 This functions is called to:
509
510 1. Sort the tests, getSortedInjectionTests() - detection phase.
511 2. Etc.
512 """
513
514 dbms = None
515
516 if not kb:
517 pass
518 elif not kb.get("testMode") and conf.get("dbmsHandler") and getattr(conf.dbmsHandler, "_dbms", None):
519 dbms = conf.dbmsHandler._dbms
520 elif Backend.getForcedDbms() is not None:
521 dbms = Backend.getForcedDbms()
522 elif Backend.getDbms() is not None:
523 dbms = Backend.getDbms()
524 elif kb.get("injection") and kb.injection.dbms:
525 dbms = unArrayizeValue(kb.injection.dbms)
526 elif Backend.getErrorParsedDBMSes():
527 dbms = unArrayizeValue(Backend.getErrorParsedDBMSes())
528 elif conf.get("dbms"):
529 dbms = conf.get("dbms")
530
531 return aliasToDbmsEnum(dbms)
532
533 @staticmethod
534 def getVersion():

Callers 15

pivotDumpTableFunction · 0.80
tableExistsFunction · 0.80
tableExistsThreadFunction · 0.80
columnExistsFunction · 0.80
setHandlerFunction · 0.80
checkSqlInjectionFunction · 0.80
_goInferenceFunction · 0.80
_goInferenceProxyFunction · 0.80
getValueFunction · 0.80
processResponseFunction · 0.80
currentDbMethod · 0.80
payloadDirectMethod · 0.80

Calls 6

unArrayizeValueFunction · 0.85
aliasToDbmsEnumFunction · 0.85
getForcedDbmsMethod · 0.80
getMethod · 0.45
getDbmsMethod · 0.45
getErrorParsedDBMSesMethod · 0.45

Tested by 4

_fuzzUnionColsFunction · 0.64
_unionPositionFunction · 0.64
dnsTestFunction · 0.64