From 71e082f25f08c5e40385f14b04a18122f11abbe8 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Mon, 7 Oct 2019 01:52:58 +0100 Subject: [PATCH] Ensure the layers are loaded on layer stacker run, not just when a layer is stacked. --- volatility/framework/automagic/stacker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/volatility/framework/automagic/stacker.py b/volatility/framework/automagic/stacker.py index ba858fb1d..ccb60af91 100644 --- a/volatility/framework/automagic/stacker.py +++ b/volatility/framework/automagic/stacker.py @@ -49,6 +49,8 @@ class LayerStacker(interfaces.automagic.AutomagicInterface): progress_callback: constants.ProgressCallback = None) -> Optional[List[str]]: """Runs the automagic over the configurable.""" + framework.import_files(sys.modules['volatility.framework.layers']) + # Quick exit if we're not needed if not requirement.unsatisfied(context, config_path): return None @@ -104,7 +106,6 @@ class LayerStacker(interfaces.automagic.AutomagicInterface): # Repeatedly apply "determine what this is" code and build as much up as possible stacked = True stacked_layers = [current_layer_name] - framework.import_files(sys.modules['volatility.framework.layers']) stack_set = sorted(framework.class_subclasses(interfaces.automagic.StackerLayerInterface), key = lambda x: x.stack_order) while stacked: