mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-09 11:17:38 +02:00
use *args and **kwargs when inheriting from IntermediateSymbolTable
This commit is contained in:
@@ -6,15 +6,7 @@ from volatility.framework.symbols.windows.extensions import kdbg
|
||||
|
||||
class KdbgIntermedSymbols(intermed.IntermediateSymbolTable):
|
||||
|
||||
def __init__(self,
|
||||
context: interfaces.context.ContextInterface,
|
||||
config_path: str,
|
||||
name: str,
|
||||
isf_url: str,
|
||||
table_mapping: typing.Optional[typing.Dict[str, str]] = None) -> None:
|
||||
super().__init__(context = context, config_path = config_path, name = name, isf_url = isf_url, table_mapping = table_mapping)
|
||||
|
||||
if table_mapping is None or "nt_symbols" not in table_mapping:
|
||||
raise exceptions.SymbolSpaceError("KdbgIntermedSymbols must be passed a table_mapping with nt_symbols")
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
self.set_type_class('_KDDEBUGGER_DATA64', kdbg._KDDEBUGGER_DATA64)
|
||||
@@ -7,13 +7,8 @@ from volatility.framework.symbols.windows.extensions import pe
|
||||
|
||||
class PEIntermedSymbols(intermed.IntermediateSymbolTable):
|
||||
|
||||
def __init__(self,
|
||||
context: interfaces.context.ContextInterface,
|
||||
config_path: str,
|
||||
name: str,
|
||||
isf_url: str,
|
||||
table_mapping: typing.Optional[typing.Dict[str, str]] = None) -> None:
|
||||
super().__init__(context = context, config_path = config_path, name = name, isf_url = isf_url, table_mapping = table_mapping)
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
self.set_type_class('_IMAGE_DOS_HEADER', pe._IMAGE_DOS_HEADER)
|
||||
# the 32- and 64-bit extensions behave the same way, but the underlying structure is different
|
||||
|
||||
Reference in New Issue
Block a user