From ade1e9057f3fa0cc8776200022772165d1d7bdf5 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Fri, 15 Jan 2016 01:46:45 +0000 Subject: [PATCH] Update documentation slightly. --- volatility/cli/__init__.py | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/volatility/cli/__init__.py b/volatility/cli/__init__.py index 6f33921b0..b3517127a 100644 --- a/volatility/cli/__init__.py +++ b/volatility/cli/__init__.py @@ -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