From 8ed5767c926bddb3cfca47f90c86aa0cc03d6447 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Wed, 26 Aug 2020 19:54:36 +0100 Subject: [PATCH] Windows: Clean up memmap based on @imhlv2's suggestion --- volatility/framework/plugins/windows/memmap.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/volatility/framework/plugins/windows/memmap.py b/volatility/framework/plugins/windows/memmap.py index b587be9f9..5c91538f2 100644 --- a/volatility/framework/plugins/windows/memmap.py +++ b/volatility/framework/plugins/windows/memmap.py @@ -35,7 +35,6 @@ class Memmap(interfaces.plugins.PluginInterface): def _generator(self, procs): for proc in procs: - offset = 0 pid = "Unknown" try: @@ -47,8 +46,7 @@ class Memmap(interfaces.plugins.PluginInterface): pid, excp.invalid_address, excp.layer_name)) continue - filename = str(pid) - filedata = interfaces.plugins.FileInterface("pid.{}.dmp".format(filename)) + filedata = interfaces.plugins.FileInterface("pid.{}.dmp".format(pid)) for mapval in proc_layer.mapping(0x0, proc_layer.maximum_address, ignore_errors = True): offset, size, mapped_offset, mapped_size, maplayer = mapval