volatility3.cli.text_renderer module
- class CLIRenderer(options=None)[source]
Bases:
RendererClass to add specific requirements for CLI renderers.
Accepts an options object to configure the renderers.
- name = 'unnamed'
- abstractmethod render(grid)
Takes a grid object and renders it based on the object’s preferences.
- Return type:
- structured_output = False
- class CLITypeRenderer(func)[source]
Bases:
TypeRendererInterface- property options
- type = ~T
- class CSVRenderer(options=None)[source]
Bases:
CLIRendererAccepts an options object to configure the renderers.
- column_hide_list: Optional[list] = None
- filter: Optional[text_filter.CLIFilter] = None
- name = 'csv'
- structured_output = True
- class JsonLinesRenderer(options=None)[source]
Bases:
JsonRendererAccepts an options object to configure the renderers.
- column_hide_list: Optional[list] = None
- filter: Optional[text_filter.CLIFilter] = None
- name = 'JSONL'
- render(grid)
Takes a grid object and renders it based on the object’s preferences.
- structured_output = True
- class JsonRenderer(options=None)[source]
Bases:
CLIRendererAccepts an options object to configure the renderers.
- column_hide_list: Optional[list] = None
- filter: Optional[text_filter.CLIFilter] = None
- name = 'JSON'
- structured_output = True
- class LayerDataRenderer[source]
Bases:
CLITypeRendererRenders a LayerData object into data/bytes
- property options
- type = ~T
- class MermaidRenderer(options=None)[source]
Bases:
CLIRendererAccepts an options object to configure the renderers.
- column_hide_list: Optional[list] = None
- filter: Optional[text_filter.CLIFilter] = None
- name = 'mermaid'
- render(grid)[source]
Render the TreeGrid as a Mermaid
graph TDflowchart.The renderer is plugin-agnostic: it derives the parent/child relationship from each node’s
path_depthin the grid, rather than from any particular column (such as PID/PPID). This means any tree-shaped plugin output – pstree, vadwalk, handles tree, future plugins – renders without modification.The algorithm maintains a parent stack while walking the rows in traversal order:
descending one or more levels pushes the previously-emitted node onto the stack (once per level descended) so it becomes the current parent;
ascending pops the same number of levels off the stack;
the top of the stack is always the parent of the next emitted node, or empty for a root-level node.
- structured_output = True
- class NoneRenderer(options=None)[source]
Bases:
CLIRendererOutputs no results
Accepts an options object to configure the renderers.
- column_hide_list: Optional[list] = None
- filter: Optional[text_filter.CLIFilter] = None
- name = 'none'
- render(grid)[source]
Takes a grid object and renders it based on the object’s preferences.
- Return type:
- structured_output = False
- class PrettyTextRenderer(options=None)[source]
Bases:
CLIRendererAccepts an options object to configure the renderers.
- column_hide_list: Optional[list] = None
- filter: Optional[text_filter.CLIFilter] = None
- name = 'pretty'
- render(grid)[source]
Renders each column immediately to stdout.
This does not format each line’s width appropriately, it merely tab separates each field
- structured_output = False
- class QuickTextRenderer(options=None)[source]
Bases:
CLIRendererAccepts an options object to configure the renderers.
- column_hide_list: Optional[list] = None
- filter: Optional[text_filter.CLIFilter] = None
- name = 'quick'
- render(grid)[source]
Renders each column immediately to stdout.
This does not format each line’s width appropriately, it merely tab separates each field
- structured_output = False
- display_disassembly(disasm)[source]
Renders a disassembly renderer type into string format.
- Parameters:
disasm (
Disassembly) – Input disassembly objects- Return type:
- Returns:
A string as rendered by capstone where available, otherwise output as if it were just bytes