mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-12 12:47:39 +02:00
Start including configuration into the data layers.
This commit is contained in:
@@ -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"""
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user