Esempio n. 1
0
 def __init__(self, **kwargs):
     super(ResponsesTable, self).__init__(**kwargs)
     self.AddColumn(semantic.RDFValueColumn("Task ID"))
     self.AddColumn(
         semantic.RDFValueColumn("Response",
                                 renderer=fileview.GrrMessageRenderer,
                                 width="100%"))
Esempio n. 2
0
 def __init__(self, **kwargs):
     super(ClientCrashCollectionRenderer, self).__init__(**kwargs)
     self.AddColumn(semantic.RDFValueColumn("Client Id", width="10%"))
     self.AddColumn(
         semantic.RDFValueColumn("Crash Details",
                                 width="90%",
                                 renderer=ClientCrashDetailsRenderer))
Esempio n. 3
0
 def __init__(self, **kwargs):
     super(HostTable, self).__init__(**kwargs)
     self.AddColumn(
         semantic.RDFValueColumn("",
                                 width="40px",
                                 header=ClientCheckboxHeaderRenderer(),
                                 renderer=ClientCheckboxRenderer))
     self.AddColumn(
         semantic.RDFValueColumn("Online",
                                 width="40px",
                                 renderer=ClientStatusIconsRenderer))
     self.AddColumn(semantic.AttributeColumn("subject", width="13em"))
     self.AddColumn(semantic.AttributeColumn("Host", width="13em"))
     self.AddColumn(semantic.AttributeColumn("Version", width="20%"))
     self.AddColumn(semantic.AttributeColumn("MAC", width="10%"))
     self.AddColumn(semantic.AttributeColumn("Usernames", width="20%"))
     self.AddColumn(
         semantic.AttributeColumn("FirstSeen",
                                  width="15%",
                                  header="First Seen"))
     self.AddColumn(
         semantic.AttributeColumn("Install",
                                  width="15%",
                                  header="OS Install Date"))
     self.AddColumn(
         semantic.RDFValueColumn("Labels",
                                 width="8%",
                                 renderer=ClientLabelsRenderer))
     self.AddColumn(
         semantic.AttributeColumn("Clock",
                                  width="15%",
                                  header="Last Checkin"))
Esempio n. 4
0
 def __init__(self, **kwargs):
   super(ArtifactManagerView, self).__init__(**kwargs)
   self.AddColumn(semantic.RDFValueColumn("Artifact Name", width="5%"))
   self.AddColumn(semantic.RDFValueColumn(
       "Artifact Details", width="50%", renderer=ArtifactRDFValueRenderer))
   self.AddColumn(semantic.RDFValueColumn(
       "Artifact Raw", width="40%", renderer=ArtifactRawRDFValueRenderer))
Esempio n. 5
0
 def __init__(self, **kwargs):
     super(ReadOnlyForemanRuleTable, self).__init__(**kwargs)
     self.AddColumn(semantic.RDFValueColumn("Created"))
     self.AddColumn(semantic.RDFValueColumn("Expires"))
     self.AddColumn(semantic.RDFValueColumn("Description"))
     self.AddColumn(
         semantic.RDFValueColumn("Rules", renderer=RuleArray, width="40%"))
     self.AddColumn(semantic.RDFValueColumn("Actions", width="40%"))
Esempio n. 6
0
 def __init__(self, **kwargs):
   super(CronTable, self).__init__(**kwargs)
   self.AddColumn(semantic.RDFValueColumn(
       "State", renderer=CronJobStateIcon, width="40px"))
   self.AddColumn(semantic.RDFValueColumn(
       "Name", width="10%", renderer=semantic.SubjectRenderer))
   self.AddColumn(semantic.RDFValueColumn("Last Run", width="10%"))
   self.AddColumn(semantic.RDFValueColumn("Frequency", width="10%"))
   self.AddColumn(semantic.RDFValueColumn("Description", width="70%"))
Esempio n. 7
0
  def __init__(self, **kwargs):
    super(RequestTable, self).__init__(**kwargs)
    self.AddColumn(semantic.RDFValueColumn(
        "Status", renderer=semantic.IconRenderer, width="40px"))

    self.AddColumn(semantic.RDFValueColumn(
        "ID", renderer=renderers.ValueRenderer))
    self.AddColumn(semantic.RDFValueColumn("Due"))
    self.AddColumn(semantic.RDFValueColumn("Flow", width="70%"))
    self.AddColumn(semantic.RDFValueColumn("Client Action", width="30%"))
Esempio n. 8
0
 def __init__(self, **kwargs):
   super(ListFlowsTable, self).__init__(**kwargs)
   self.AddColumn(semantic.RDFValueColumn(
       "State", renderer=FlowStateIcon, width="40px"))
   self.AddColumn(FlowColumn("Path", renderer=semantic.SubjectRenderer,
                             width="20%"))
   self.AddColumn(semantic.RDFValueColumn("Flow Name", width="20%"))
   self.AddColumn(semantic.RDFValueColumn("Creation Time", width="20%"))
   self.AddColumn(semantic.RDFValueColumn("Last Active", width="20%"))
   self.AddColumn(semantic.RDFValueColumn("Creator", width="20%"))
Esempio n. 9
0
 def __init__(self, **kwargs):
     super(HuntClientTableRenderer, self).__init__(**kwargs)
     self.AddColumn(
         semantic.RDFValueColumn("Client ID",
                                 width="20%",
                                 renderer=semantic.SubjectRenderer))
     self.AddColumn(semantic.RDFValueColumn("Hostname", width="10%"))
     self.AddColumn(semantic.RDFValueColumn("Status", width="10%"))
     self.AddColumn(
         semantic.RDFValueColumn("User CPU seconds",
                                 width="10%",
                                 renderer=FloatRenderer))
     self.AddColumn(
         semantic.RDFValueColumn("System CPU seconds",
                                 width="10%",
                                 renderer=FloatRenderer))
     self.AddColumn(
         semantic.RDFValueColumn("CPU",
                                 renderer=ResourceRenderer,
                                 width="10%"))
     self.AddColumn(
         semantic.RDFValueColumn("Network bytes sent", width="10%"))
     self.AddColumn(
         semantic.RDFValueColumn("Network",
                                 renderer=ResourceRenderer,
                                 width="10%"))
     self.AddColumn(semantic.RDFValueColumn("Last Checkin", width="10%"))
Esempio n. 10
0
  def __init__(self, **kwargs):
    super(ConfigFileTable, self).__init__(**kwargs)

    self.AddColumn(semantic.RDFValueColumn(
        "Icon", renderer=semantic.IconRenderer, width="40px"))
    self.AddColumn(semantic.RDFValueColumn(
        "Name", renderer=semantic.SubjectRenderer, sortable=True, width="25%"))
    self.AddColumn(semantic.AttributeColumn("type", width="25%"))
    self.AddColumn(ConfigDescriptionColumn(width="25%"))
    self.AddColumn(semantic.RDFValueColumn(
        "Age", renderer=fileview.AgeSelector, width="25%"))
Esempio n. 11
0
  def __init__(self, **kwargs):
    super(FileTable, self).__init__(**kwargs)

    self.AddColumn(semantic.RDFValueColumn(
        "Icon", renderer=semantic.IconRenderer, width="40px"))
    self.AddColumn(semantic.RDFValueColumn(
        "Name", renderer=semantic.SubjectRenderer, sortable=True, width="20%"))
    self.AddColumn(semantic.AttributeColumn("type", width="10%"))
    self.AddColumn(semantic.AttributeColumn("size", width="10%"))
    self.AddColumn(semantic.AttributeColumn("stat.st_size", width="15%"))
    self.AddColumn(semantic.AttributeColumn("stat.st_mtime", width="15%"))
    self.AddColumn(semantic.AttributeColumn("stat.st_ctime", width="15%"))
    self.AddColumn(semantic.RDFValueColumn(
        "Age", renderer=AgeSelector, width="15%"))
Esempio n. 12
0
 def __init__(self, **kwargs):
     super(HuntOutstandingRenderer, self).__init__(**kwargs)
     self.AddColumn(semantic.RDFValueColumn("Client"))
     self.AddColumn(semantic.RDFValueColumn("Flow"))
     self.AddColumn(semantic.RDFValueColumn("Incomplete Request #"))
     self.AddColumn(semantic.RDFValueColumn("State"))
     self.AddColumn(semantic.RDFValueColumn("Args Expected"))
     self.AddColumn(semantic.RDFValueColumn("Available Responses"))
     self.AddColumn(semantic.RDFValueColumn("Status"))
     self.AddColumn(semantic.RDFValueColumn("Expected Responses"))
     self.AddColumn(semantic.RDFValueColumn("Client Requests Pending"))
Esempio n. 13
0
    def Layout(self, request, response):
        self.state = dict(flow=request.REQ.get("flow"),
                          attribute=request.REQ.get("attribute"))

        self.AddColumn(semantic.RDFValueColumn(self.state["attribute"]))

        return renderers.TableRenderer.Layout(self, request, response)
Esempio n. 14
0
  def __init__(self, **kwargs):
    if ContainerFileTable.content_cache is None:
      ContainerFileTable.content_cache = utils.TimeBasedCache()

    super(ContainerFileTable, self).__init__(**kwargs)

    self.AddColumn(semantic.RDFValueColumn(
        "Icon", renderer=semantic.IconRenderer, width="40px"))
    self.AddColumn(semantic.AttributeColumn("subject", width="100%"))
Esempio n. 15
0
 def __init__(self, **kwargs):
   if EventTable.content_cache is None:
     EventTable.content_cache = utils.TimeBasedCache()
   super(EventTable, self).__init__(**kwargs)
   self.AddColumn(semantic.AttributeColumn("event.id"))
   self.AddColumn(semantic.AttributeColumn("timestamp"))
   self.AddColumn(semantic.AttributeColumn("subject"))
   self.AddColumn(semantic.RDFValueColumn(
       "Message", renderer=EventMessageRenderer, width="100%"))
Esempio n. 16
0
  def BuildTable(self, start_row, end_row, request):
    """Populate the table with attribute values."""
    flow_name = request.REQ.get("flow")
    attribute_name = request.REQ.get("attribute")

    if attribute_name is None:
      return

    self.AddColumn(semantic.RDFValueColumn(attribute_name))
    fd = aff4.FACTORY.Open(flow_name, token=request.token, age=aff4.ALL_TIMES)

    self.BuildTableFromAttribute(attribute_name, fd, start_row, end_row)
Esempio n. 17
0
  def BuildTable(self, start_row, end_row, request):
    """Populate the table with attribute values."""
    attribute_name = request.REQ.get("attribute")
    if attribute_name is None:
      return

    urn = request.REQ.get("urn")
    client_id = request.REQ.get("client_id")
    path = request.REQ.get("path")

    self.AddColumn(semantic.RDFValueColumn(attribute_name))
    fd = aff4.FACTORY.Open(urn or path or client_id,
                           token=request.token, age=aff4.ALL_TIMES)
    self.BuildTableFromAttribute(attribute_name, fd, start_row, end_row)
Esempio n. 18
0
    def __init__(self, **kwargs):
        super(HuntTable, self).__init__(**kwargs)
        self.AddColumn(
            semantic.RDFValueColumn("Status",
                                    renderer=HuntStateIcon,
                                    width="40px"))

        # The hunt id is the AFF4 URN for the hunt object.
        self.AddColumn(
            semantic.RDFValueColumn("Hunt ID",
                                    renderer=semantic.SubjectRenderer))
        self.AddColumn(semantic.RDFValueColumn("Name"))
        self.AddColumn(semantic.RDFValueColumn("Start Time", width="16em"))
        self.AddColumn(semantic.RDFValueColumn("Expires", width="16em"))
        self.AddColumn(semantic.RDFValueColumn("Client Limit"))
        self.AddColumn(semantic.RDFValueColumn("Creator"))
        self.AddColumn(semantic.RDFValueColumn("Description", width="100%"))
Esempio n. 19
0
 def __init__(self, **kwargs):
     renderers.TableRenderer.__init__(self, **kwargs)
     self.AddColumn(
         semantic.RDFValueColumn("Online",
                                 width="40px",
                                 renderer=CenteredOnlineStateIcon))
     self.AddColumn(semantic.AttributeColumn("subject", width="13em"))
     self.AddColumn(semantic.AttributeColumn("Host", width="13em"))
     self.AddColumn(semantic.AttributeColumn("Version", width="20%"))
     self.AddColumn(semantic.AttributeColumn("MAC", width="10%"))
     self.AddColumn(semantic.AttributeColumn("Usernames", width="20%"))
     self.AddColumn(
         semantic.AttributeColumn("FirstSeen",
                                  width="15%",
                                  header="First Seen"))
     self.AddColumn(
         semantic.AttributeColumn("Install",
                                  width="15%",
                                  header="OS Install Date"))
     self.AddColumn(semantic.AttributeColumn("Labels", width="8%"))
     self.AddColumn(
         semantic.AttributeColumn("Clock",
                                  width="15%",
                                  header="Last Checkin"))
Esempio n. 20
0
  def __init__(self, **kwargs):
    renderers.TableRenderer.__init__(self, **kwargs)

    self.AddColumn(semantic.RDFValueColumn("Timestamp"))
    self.AddColumn(semantic.RDFValueColumn("Message", width="100%"))
    self.AddColumn(semantic.RDFValueColumn("Target"))
Esempio n. 21
0
  def __init__(self, **kwargs):
    super(HistoricalView, self).__init__(**kwargs)

    self.AddColumn(semantic.RDFValueColumn("Age"))
Esempio n. 22
0
  def Layout(self, request, response):
    """Add the columns to the table."""
    self.AddColumn(semantic.RDFValueColumn(request.REQ.get("attribute")))

    return super(HistoricalView, self).Layout(request, response)
Esempio n. 23
0
 def __init__(self, **kwargs):
     super(FlowRequestView, self).__init__(**kwargs)
     self.AddColumn(semantic.RDFValueColumn("ID"))
     self.AddColumn(semantic.RDFValueColumn("Request", width="100%"))
     self.AddColumn(semantic.RDFValueColumn("Last Response", width="100%"))
Esempio n. 24
0
  def __init__(self, **kwargs):
    super(VersionSelectorDialog, self).__init__(**kwargs)

    self.AddColumn(semantic.RDFValueColumn("Age"))
    self.AddColumn(semantic.RDFValueColumn("Type"))
Esempio n. 25
0
 def __init__(self, **kwargs):
     super(HuntRuleRenderer, self).__init__(**kwargs)
     self.AddColumn(semantic.RDFValueColumn("Rules", width="100%"))
Esempio n. 26
0
File: usage.py Progetto: S1yFox/grr
 def __init__(self, **kwargs):
   super(SystemFlows, self).__init__(**kwargs)
   self.AddColumn(semantic.RDFValueColumn("Flow Name"))
   self.AddColumn(semantic.RDFValueColumn("Run Count"))
   self.AddColumn(semantic.RDFValueColumn("Most Run By"))
Esempio n. 27
0
    def __init__(self, **kwargs):
        super(FilestoreTable, self).__init__(**kwargs)

        self.AddColumn(semantic.RDFValueColumn("Client"))
        self.AddColumn(semantic.RDFValueColumn("File"))
        self.AddColumn(semantic.RDFValueColumn("Timestamp"))
Esempio n. 28
0
File: usage.py Progetto: S1yFox/grr
 def __init__(self, **kwargs):
   super(AuditTable, self).__init__(**kwargs)
   for column_name in sorted(self.column_map):
     self.AddColumn(semantic.RDFValueColumn(column_name))