mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-10 11:47:38 +02:00
Automagic: Fix os_chooser method
Two issues found: * the plugin hierarchy always start volatility.plugins, so we need to go to index 2. * the layers weren't loaded at the time the stacker list was generated so all other stackers failed.
This commit is contained in:
@@ -247,7 +247,10 @@ class LayerStacker(interfaces.automagic.AutomagicInterface):
|
||||
|
||||
def choose_os_stackers(plugin):
|
||||
"""Identifies the stackers that should be run, based on the plugin (and thus os) provided"""
|
||||
plugin_first_level = plugin.__module__.split('.')[0]
|
||||
plugin_first_level = plugin.__module__.split('.')[2]
|
||||
|
||||
# Ensure all stackers are loaded
|
||||
framework.import_files(sys.modules['volatility.framework.layers'])
|
||||
|
||||
result = []
|
||||
for stacker in sorted(framework.class_subclasses(interfaces.automagic.StackerLayerInterface),
|
||||
|
||||
Reference in New Issue
Block a user