From 49009ec458c1b68ceca939e85431d48c50de93be Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Thu, 19 Jan 2017 16:19:10 +0000 Subject: [PATCH] Parameterize the plugin calling, with run as the default. --- volatility/framework/interfaces/plugins.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/volatility/framework/interfaces/plugins.py b/volatility/framework/interfaces/plugins.py index 30d779b55..8d296ef7b 100644 --- a/volatility/framework/interfaces/plugins.py +++ b/volatility/framework/interfaces/plugins.py @@ -57,8 +57,9 @@ class PluginInterface(interfaces_configuration.ConfigurableInterface, validity.V :rtype: interfaces.renderers.TreeGrid """ - def __call__(self, **kwargs): + def __call__(self, method = 'run', **kwargs): """Method to make a plugin callable. It must still have been instantiated with a context and a config_path""" for k, v in kwargs: self.config[k] = v - return self.run() + method = getattr(self, method) + return method()