mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-10 03:37:39 +02:00
Improve quicktext renderer to support trees.
This commit is contained in:
@@ -65,6 +65,8 @@ class QuickTextRenderer(interfaces.renderers.Renderer):
|
||||
|
||||
def visitor(node, accumulator):
|
||||
accumulator.write("\n")
|
||||
# Nodes always have a path value, giving them a path_depth of at least 1, we use max just in case
|
||||
accumulator.write("*" * max(0, node.path_depth - 1))
|
||||
for column in grid.columns:
|
||||
renderer = self.type_renderers.get(column.type, self.type_renderers['default'])
|
||||
accumulator.write("\t" + renderer(node.values[column.index]))
|
||||
|
||||
Reference in New Issue
Block a user