def read_configuration(self):
    CGenericFuzzer.read_configuration(self)

    parser = ConfigParser.SafeConfigParser()
    parser.optionxform = str
    parser.read(self.cfg)

    try:
      self.client_command = parser.get(self.section, 'client-command')
    except:
      raise Exception("No client command specified in the configuration file for section %s" % self.section)

    try:
      self.server_uid = parser.get(self.section, 'server-uid')
    except:
      raise Exception("No server UID specified in the configuration file for section %s" % self.section)

    try:
      self.server_gid = parser.get(self.section, 'server-gid')
    except:
      raise Exception("No server GID specified in the configuration file for section %s" % self.section)

    try:
      self.client_uid = parser.get(self.section, 'client-uid')
    except:
      raise Exception("No client UID specified in the configuration file for section %s" % self.section)

    try:
      self.client_gid = parser.get(self.section, 'client-gid')
    except:
      raise Exception("No client GID specified in the configuration file for section %s" % self.section)
Example #2
0
    def __init__(self, cfg, section):
        CGenericFuzzer.__init__(self, cfg, section)

        self.client_command = None
        self.server_uid = 0
        self.server_gid = 0
        self.client_uid = 1000
        self.client_gid = 1000

        # This is the server process
        self.p = None
        self.crash_info = None
        self.shared_queue = None
  def __init__(self, cfg, section):
    CGenericFuzzer.__init__(self, cfg, section)

    self.client_command = None
    self.server_uid = 0
    self.server_gid = 0
    self.client_uid  = 1000
    self.client_gid = 1000
    
    # This is the server process
    self.p = None
    self.crash_info = None
    self.shared_queue = None
Example #4
0
    def read_configuration(self):
        CGenericFuzzer.read_configuration(self)

        try:
            parser = ConfigParser.SafeConfigParser()
        except:
            parser = configParser.SafeConfigParser()

        parser.optionxform = str
        parser.read(self.cfg)

        try:
            self.client_command = parser.get(self.section, 'client-command')
        except:
            raise Exception(
                "No client command specified in the configuration file for section %s"
                % self.section)

        try:
            self.server_uid = parser.get(self.section, 'server-uid')
        except:
            raise Exception(
                "No server UID specified in the configuration file for section %s"
                % self.section)

        try:
            self.server_gid = parser.get(self.section, 'server-gid')
        except:
            raise Exception(
                "No server GID specified in the configuration file for section %s"
                % self.section)

        try:
            self.client_uid = parser.get(self.section, 'client-uid')
        except:
            raise Exception(
                "No client UID specified in the configuration file for section %s"
                % self.section)

        try:
            self.client_gid = parser.get(self.section, 'client-gid')
        except:
            raise Exception(
                "No client GID specified in the configuration file for section %s"
                % self.section)