use *args and **kwargs when inheriting from IntermediateSymbolTable

This commit is contained in:
Michael Ligh
2018-06-12 08:41:37 +01:00
committed by Mike Auty
parent 7797a6a385
commit ae9d7dbc86
2 changed files with 4 additions and 17 deletions
+2 -10
View File
@@ -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)
+2 -7
View File
@@ -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