Start including configuration into the data layers.

This commit is contained in:
Mike Auty
2015-12-29 22:22:31 +00:00
parent cf66d0b447
commit 595e2faeb4
2 changed files with 12 additions and 1 deletions
+7
View File
@@ -7,6 +7,7 @@ Created on 7 May 2013
import math
import struct
import volatility.framework.configuration as configuration
from volatility.framework import interfaces, exceptions
@@ -124,6 +125,12 @@ class Intel(interfaces.layers.TranslationLayerInterface):
# TODO: Add in the whole buffalo
return [self._base_layer]
@classmethod
def get_schema(cls):
return [configuration.TranslationLayerRequirement(name = 'memory_layer', optional = False),
configuration.TranslationLayerRequirement(name = 'swap_layer', optional = True),
configuration.IntRequirement(name = 'page_map_offset', optional = False)]
class IntelPAE(Intel):
"""Class for handling Physical Address Extensions for Intel architectures"""
+5 -1
View File
@@ -6,7 +6,7 @@ Created on 6 May 2013
import os.path
from volatility.framework import interfaces, exceptions
from volatility.framework import interfaces, exceptions, configuration
class BufferDataLayer(interfaces.layers.DataLayerInterface):
@@ -97,3 +97,7 @@ class FileLayer(interfaces.layers.DataLayerInterface):
def destroy(self):
"""Closes the file handle"""
self._file.close()
@classmethod
def get_schema(cls):
return [configuration.StringRequirement(name = 'filename', optional = False)]