Move the get_requirements over to the IntermedSymbols which actually requires the parameter.

This commit is contained in:
Mike Auty
2018-12-13 01:39:26 +00:00
parent 5e8ba16709
commit c9a08603c7
3 changed files with 6 additions and 10 deletions
+6
View File
@@ -12,6 +12,7 @@ from abc import ABCMeta
import volatility
from volatility import schemas, symbols
from volatility.framework import class_subclasses, constants, exceptions, interfaces, objects, layers
from volatility.framework.configuration import requirements
from volatility.framework.symbols import native, metadata
vollog = logging.getLogger(__name__)
@@ -204,6 +205,11 @@ class IntermediateSymbolTable(interfaces.symbols.SymbolTableInterface):
context.symbol_space.append(table)
return table_name
@classmethod
def get_requirements(cls) -> typing.List[interfaces.configuration.RequirementInterface]:
return [requirements.StringRequirement("isf_url",
description = "JSON file containing the symbols encoded in the Intermediate Symbol Format")]
class ISFormatTable(interfaces.symbols.SymbolTableInterface, metaclass = ABCMeta):
"""Provide a base class to identify all subclasses"""
@@ -32,8 +32,3 @@ class LinuxKernelIntermedSymbols(intermed.IntermediateSymbolTable):
if 'mount' in self.types:
self.set_type_class('mount', extensions.mount)
@classmethod
def get_requirements(cls) -> typing.List[interfaces.configuration.RequirementInterface]:
return [requirements.StringRequirement("isf_url",
description = "JSON file containing the symbols encoded in the Intermediate Symbol Format")]
@@ -57,8 +57,3 @@ class WindowsKernelIntermedSymbols(intermed.IntermediateSymbolTable):
self.set_type_class('_RTL_BALANCED_NODE', extensions._MMVAD_SHORT)
except ValueError:
pass
@classmethod
def get_requirements(cls) -> typing.List[interfaces.configuration.RequirementInterface]:
return [requirements.StringRequirement("isf_url",
description = "JSON file containing the symbols encoded in the Intermediate Symbol Format")]