mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-17 20:35:40 +02:00
ensure the crashinfo plugin gets a crash layer
This commit is contained in:
@@ -8,6 +8,7 @@ from volatility3.framework import interfaces, renderers
|
||||
from volatility3.framework.configuration import requirements
|
||||
from volatility3.framework.renderers import format_hints, conversion
|
||||
from volatility3.framework.objects import utility
|
||||
from volatility3.framework.layers import crash
|
||||
|
||||
vollog = logging.getLogger(__name__)
|
||||
|
||||
@@ -63,6 +64,10 @@ class Crashinfo(interfaces.plugins.PluginInterface):
|
||||
|
||||
def run(self):
|
||||
layer = self._context.layers[self.config['primary.memory_layer']]
|
||||
if not isinstance(layer, crash.WindowsCrashDump32Layer):
|
||||
vollog.error("This plugin requires a Windows crash dump")
|
||||
raise
|
||||
|
||||
return renderers.TreeGrid([("Signature", str),
|
||||
("MajorVersion", int),
|
||||
("MinorVersion", int),
|
||||
|
||||
Reference in New Issue
Block a user