mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-29 04:54:51 +02:00
Move the get_requirements over to the IntermedSymbols which actually requires the parameter.
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user