From 3bf3e0601a85fa60eb7c72cbe6eaa8ac0809d89b Mon Sep 17 00:00:00 2001 From: Andrew Case Date: Fri, 3 Jan 2020 11:48:12 -0600 Subject: [PATCH] Remove earliler trigger of SymbolError --- volatility/framework/plugins/linux/lsmod.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/volatility/framework/plugins/linux/lsmod.py b/volatility/framework/plugins/linux/lsmod.py index f9683d47a..4d6f14b21 100644 --- a/volatility/framework/plugins/linux/lsmod.py +++ b/volatility/framework/plugins/linux/lsmod.py @@ -42,14 +42,13 @@ class Lsmod(plugins.PluginInterface): Yields: The modules present in the `layer_name` layer's modules list + + This function will throw a SymbolError exception if kernel module support is not enabled. """ linux.LinuxUtilities.aslr_mask_symbol_table(context, vmlinux_symbols, layer_name) vmlinux = contexts.Module(context, vmlinux_symbols, layer_name, 0) - # this will cause an exception if module support is not compiled into the kernel - vmlinux.get_type("module") - modules = vmlinux.object_from_symbol(symbol_name = "modules").cast("list_head") table_name = modules.vol.type_name.split(constants.BANG)[0]