def _setOS():
 if (not conf.os):
  return
 if (conf.os.lower() not in SUPPORTED_OS):
  errMsg = 'you provided an unsupported back-end DBMS operating '
  errMsg += 'system. The supported DBMS operating systems for OS '
  errMsg += ('and file system access are %s. ' % ', '.join([o.capitalize() for o in SUPPORTED_OS]))
  errMsg += 'If you do not know the back-end DBMS underlying OS, '
  errMsg += 'do not provide it and sqlmap will fingerprint it for '
  errMsg += 'you.'
  raise SqlmapUnsupportedDBMSException(errMsg)
 debugMsg = 'forcing back-end DBMS operating system to user defined '
 debugMsg += ("value '%s'" % conf.os)
 logger.debug(debugMsg)
 Backend.setOs(conf.os)

def _setOS ( ) : if ( not conf . os ) : return if ( conf . os . lower ( ) not in SUPPORTED_OS ) : errMsg = 'you provided an unsupported back-end DBMS operating ' errMsg += 'system. The supported DBMS operating systems for OS ' errMsg += ( 'and file system access are %s. ' % ', ' . join ( [ o . capitalize ( ) for o in SUPPORTED_OS ] ) ) errMsg += 'If you do not know the back-end DBMS underlying OS, ' errMsg += 'do not provide it and sqlmap will fingerprint it for ' errMsg += 'you.' raise SqlmapUnsupportedDBMSException ( errMsg ) debugMsg = 'forcing back-end DBMS operating system to user defined ' debugMsg += ( "value '%s'" % conf . os ) logger . debug ( debugMsg ) Backend . setOs ( conf . os )
force the back-end dbms operating system option .