Beispiel #1
0
  def Run(self, args):
    result = rdf_artifacts.ClientArtifactCollectorResult()
    self.knowledge_base = args.knowledge_base
    self.ignore_interpolation_errors = args.ignore_interpolation_errors
    for artifact in args.artifacts:
      self.Progress()
      collected_artifact = self._CollectArtifact(
          artifact, apply_parsers=args.apply_parsers)
      result.collected_artifacts.append(collected_artifact)

    # TODO(user): Limit the number of bytes and send multiple responses.
    # e.g. grr_rekall.py RESPONSE_CHUNK_SIZE
    self.SendReply(result)
Beispiel #2
0
  def Run(self, args):
    result = rdf_artifacts.ClientArtifactCollectorResult()

    # The knowledge base is either (partially) filled or an empty rdf object.
    self.knowledge_base = args.knowledge_base

    self.ignore_interpolation_errors = args.ignore_interpolation_errors
    for artifact in args.artifacts:
      self.Progress()
      collected_artifact = self._CollectArtifact(
          artifact, apply_parsers=args.apply_parsers)
      if artifact.requested_by_user:
        result.collected_artifacts.append(collected_artifact)

    result.knowledge_base = self.knowledge_base

    # TODO(user): Limit the number of bytes and send multiple responses.
    self.SendReply(result)