Add a todo to validate factory requirements as well as just plugin requirements.

This commit is contained in:
Mike Auty
2015-04-13 14:18:33 -05:00
parent f4d07c01b7
commit ddef7e76b3
3 changed files with 11 additions and 6 deletions
+6 -3
View File
@@ -28,7 +28,10 @@ class CommandLine(object):
plugin = volatility.plugins.windows.pslist.PsList
context = self.handle_plugin_requirements(plugin)
plugin(context)
# Construct the plugin
runner = plugin(context)
# Run the plugin
runner()
def construct_layer_factory(self, name):
"""Turns a configuration from a plugin into a """
@@ -51,9 +54,9 @@ class CommandLine(object):
facreqs = factory.requirements()
for facreq in facreqs:
context.config.add_item(facreq, namespace = namespace)
#TODO: Do something clever with the facreqs
#TODO: Validate factory requirements
context = factory(context)
context.config.get(config.namespace_join([plugin.__name__, req.name])).value = 'primary'
context.config.get(config.namespace_join([plugin.__name__, req.name])).value = 'intel'
return context