def _setDBMSAuthentication():
 if (not conf.dbmsCred):
  return
 debugMsg = 'setting the DBMS authentication credentials'
 logger.debug(debugMsg)
 match = re.search('^(.+?):(.*?)$', conf.dbmsCred)
 if (not match):
  errMsg = 'DBMS authentication credentials value must be in format '
  errMsg += 'username:password'
  raise SqlmapSyntaxException(errMsg)
 conf.dbmsUsername = match.group(1)
 conf.dbmsPassword = match.group(2)

def _setDBMSAuthentication ( ) : if ( not conf . dbmsCred ) : return debugMsg = 'setting the DBMS authentication credentials' logger . debug ( debugMsg ) match = re . search ( '^(.+?):(.*?)$' , conf . dbmsCred ) if ( not match ) : errMsg = 'DBMS authentication credentials value must be in format ' errMsg += 'username:password' raise SqlmapSyntaxException ( errMsg ) conf . dbmsUsername = match . group ( 1 ) conf . dbmsPassword = match . group ( 2 )
check and set the dbms authentication credentials to run statements as another user .