/usr/lib/python2.7/dist-packages/rekall/plugins/renderers/efilter.py is in python-rekall-core 1.6.0+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | # Rekall Memory Forensics
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Authors:
# Michael Cohen <scudette@google.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
"""Renderers for Efilter.."""
from rekall.ui import renderer as renderer_module
from rekall.ui import text
from rekall.plugins.renderers import data_export
class RowTupleTextObjectRenderer(text.TextObjectRenderer):
renders_type = "RowTuple"
renderers = ["TextRenderer", "TestRenderer", "WideTextRenderer"]
def render_row(self, item, **_):
result = []
for element in item:
delegate_cls = renderer_module.ObjectRenderer.ForTarget(
element, renderer=self.renderer)
result.append(delegate_cls(
session=self.session,
renderer=self.renderer).render_row(element))
return text.JoinedCell(*result)
class RowTupleDataExportObjectRenderer(data_export.DataExportObjectRenderer):
renders_type = "RowTuple"
def GetState(self, item, **_):
return dict(items=list(item))
|