From e203d11e0b1531c1a571c6affbbbb117cb9b2092 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Sun, 23 Sep 2018 13:06:48 +0100 Subject: [PATCH] Ensure the swap list configuration gets set appropriately. --- volatility/framework/automagic/windows.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/volatility/framework/automagic/windows.py b/volatility/framework/automagic/windows.py index 8f306a92a..88debecb0 100644 --- a/volatility/framework/automagic/windows.py +++ b/volatility/framework/automagic/windows.py @@ -397,11 +397,13 @@ class WinSwapLayers(interfaces.automagic.AutomagicInterface): current_layer_path = path_join(swap_sub_config, current_layer_name) layer_loc_path = path_join(current_layer_path, "location") layer_class_path = path_join(current_layer_path, "class") + counter += 1 # Fill in the config - context.config[layer_loc_path] = swap_location - context.config[layer_class_path] = 'volatility.framework.layers.physical.FileLayer' - counter += 1 + if swap_location: + context.config[current_layer_path] = current_layer_name + context.config[layer_loc_path] = swap_location + context.config[layer_class_path] = 'volatility.framework.layers.physical.FileLayer' # Add the requirement new_req = requirements.TranslationLayerRequirement(name = current_layer_name,