mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-22 01:24:51 +02:00
Update documentation slightly.
This commit is contained in:
@@ -24,7 +24,7 @@ class CommandLine(object):
|
||||
|
||||
volatility.framework.require_version(3, 0, 0)
|
||||
|
||||
# TODO: Get global config options
|
||||
# TODO: Get CLI config options
|
||||
plugins.import_plugins()
|
||||
|
||||
# TODO: Choose a plugin
|
||||
@@ -41,24 +41,14 @@ class CommandLine(object):
|
||||
dldr = depresolver.DataLayerDependencyResolver()
|
||||
dependencies = dldr.build_tree(plugin)
|
||||
|
||||
# TODO: write functions that determine all possible options/requirements for this plugin
|
||||
# (flatten the tree, treating disjunctions as conjunctions)
|
||||
# print(list(dependencies))
|
||||
|
||||
|
||||
# TODO: Write functions that walk the tree and produce instances of each of the requirements
|
||||
# (to allow a registry-like tree of config values that can be populated by the user)
|
||||
|
||||
# TODO: Walk down the tree attempting to fulfil each requirement (recursive) and backtrack when necessary
|
||||
# Translate the parsed args to a context configuration
|
||||
|
||||
|
||||
# UI fills in the config:
|
||||
ctx = contexts.Context()
|
||||
ctx.config["pslist.primary.memory_layer.filename"] = "/run/media/mike/disk/memory/xp-laptop-2005-07-04-1430.img"
|
||||
ctx.config["pslist.primary.page_map_offset"] = 0x39000
|
||||
ctx.config["pslist.offset"] = 0x823c87c0
|
||||
|
||||
# Walk down the tree attempting to fulfil each requirement (recursive) and backtrack when necessary
|
||||
# Translate the parsed args to a context configuration
|
||||
config_path = plugin.__name__.lower()
|
||||
if dldr.validate_dependencies(dependencies, context = ctx, path = config_path):
|
||||
# Construct and run the plugin
|
||||
|
||||
Reference in New Issue
Block a user