()
Force the back-end DBMS option.
Force the back-end DBMS option.
Force the back - end DBMS option .
def _setDBMS():
    """
    Force the back-end DBMS option.
    """

    if not conf.dbms:
        return

    debugMsg = "forcing back-end DBMS to user defined value"
    logger.debug(debugMsg)

    conf.dbms = conf.dbms.lower()
    regex = re.search("%s ([\d\.]+)" % ("(%s)" % "|".join([alias for alias in SUPPORTED_DBMS])), conf.dbms, re.I)

    if regex:
        conf.dbms = regex.group(1)
        Backend.setVersion(regex.group(2))

    if conf.dbms not in SUPPORTED_DBMS:
        errMsg = "you provided an unsupported back-end database management "
        errMsg += "system. Supported DBMSes are as follows: %s. " % ', '.join(sorted(_ for _ in DBMS_DICT))
        errMsg += "If you do not know the back-end DBMS, do not provide "
        errMsg += "it and sqlmap will fingerprint it for you."
        raise SqlmapUnsupportedDBMSException(errMsg)

    for dbms, aliases in DBMS_ALIASES:
        if conf.dbms in aliases:
            conf.dbms = dbms

            break
def _setDBMS ( ) : if not conf . dbms : return debugMsg = "forcing back-end DBMS to user defined value" logger . debug ( debugMsg ) conf . dbms = conf . dbms . lower ( ) regex = re . search ( "%s ([\d\.]+)" % ( "(%s)" % "|" . join ( [ alias for alias in SUPPORTED_DBMS ] ) ) , conf . dbms , re . I ) if regex : conf . dbms = regex . group ( 1 ) Backend . setVersion ( regex . group ( 2 ) ) if conf . dbms not in SUPPORTED_DBMS : errMsg = "you provided an unsupported back-end database management " errMsg += "system. Supported DBMSes are as follows: %s. " % ', ' . join ( sorted ( _ for _ in DBMS_DICT ) ) errMsg += "If you do not know the back-end DBMS, do not provide " errMsg += "it and sqlmap will fingerprint it for you." raise SqlmapUnsupportedDBMSException ( errMsg ) for dbms , aliases in DBMS_ALIASES : if conf . dbms in aliases : conf . dbms = dbms break