From efd2468639113b96787e87da8fb477aa1e296863 Mon Sep 17 00:00:00 2001 From: iMHLv2 Date: Tue, 21 Feb 2017 18:06:52 +0000 Subject: [PATCH] import modules rather than classes --- volatility/plugins/windows/dlllist.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/volatility/plugins/windows/dlllist.py b/volatility/plugins/windows/dlllist.py index 70bd5bebe..3e3cba436 100644 --- a/volatility/plugins/windows/dlllist.py +++ b/volatility/plugins/windows/dlllist.py @@ -1,8 +1,8 @@ import volatility.framework.interfaces.plugins as plugins import volatility.plugins.windows.pslist as pslist from volatility.framework.configuration import requirements -from volatility.framework.renderers import TreeGrid -from volatility.framework.renderers.format_hints import Hex +from volatility.framework import renderers +from volatility.framework.renderers import format_hints class DllList(plugins.PluginInterface): @classmethod @@ -24,17 +24,17 @@ class DllList(plugins.PluginInterface): yield (0, (proc.UniqueProcessId, proc.ImageFileName.cast("string", max_length = proc.ImageFileName.vol.count, errors = 'replace'), - Hex(entry.DllBase), Hex(entry.SizeOfImage), + format_hints.Hex(entry.DllBase), format_hints.Hex(entry.SizeOfImage), entry.BaseDllName.String, entry.FullDllName.String)) def run(self): plugin = pslist.PsList(self.context, "plugins.DllList") - return TreeGrid([("PID", int), + return renderers.TreeGrid([("PID", int), ("Process", str), - ("Base", Hex), - ("Size", Hex), + ("Base", format_hints.Hex), + ("Size", format_hints.Hex), ("Name", str), ("Path", str)], self._generator(plugin.list_processes()))