From 287c7ce0b03ba52e0f30e0ceebec6c6a469c37d2 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Thu, 15 Aug 2019 21:05:49 +0100 Subject: [PATCH] Minor fixes for virtmap given the recent module refactoring. --- volatility/framework/plugins/windows/virtmap.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/volatility/framework/plugins/windows/virtmap.py b/volatility/framework/plugins/windows/virtmap.py index 438cb676d..0499282e4 100644 --- a/volatility/framework/plugins/windows/virtmap.py +++ b/volatility/framework/plugins/windows/virtmap.py @@ -70,10 +70,10 @@ class VirtMap(interfaces.plugins.PluginInterface): large_page_size = (module.context.layers[module.layer_name].page_size ** 2) // module.get_type("_MMPTE").size system_range_start = module.object( - type = "pointer", offset = module.get_symbol("MmSystemRangeStart").address) + object_type = "pointer", offset = module.get_symbol("MmSystemRangeStart").address) array_count = (0xFFFFFFFF + 1 - system_range_start) // large_page_size type_array = module.object( - type = 'array', offset = symbol.address, count = array_count, subtype = module.get_type('char')) + object_type = 'array', offset = symbol.address, count = array_count, subtype = module.get_type('char')) system_va_type = module.get_enumeration('_MI_SYSTEM_VA_TYPE') start = system_range_start prev_entry = -1 @@ -108,4 +108,4 @@ class VirtMap(interfaces.plugins.PluginInterface): return renderers.TreeGrid([("Region", str), ("Start offset", format_hints.Hex), ("End offset", format_hints.Hex)], - self._generator(self.determine_map(context = self.context, module = module))) + self._generator(self.determine_map(module = module)))