Files
volatility3/volatility/framework/contexts/physical.py
T

21 lines
896 B
Python

from volatility.framework import interfaces, layers, config
__author__ = 'mike'
class PhysicalContextModifier(interfaces.context.ContextModifierInterface):
@classmethod
def requirements(cls):
return [config.StringRequirement(name = 'location',
description = 'URL to the physical address space'),
config.StringRequirement(name = 'layer_name',
description = 'Layer name for the physical space',
default = 'physical')]
def __call__(self, context):
# Ideally allow for the plugin to specify the layering, but if not then guess at the best one
config = self.config_get(context)
base = layers.physical.FileLayer(context, config.get('layer_name'), filename = config.get('location'))
context.add_layer(base)