From 9350f7b88a120a64bb2ff9d5d49356122aff7299 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Tue, 23 Apr 2019 00:32:29 +0100 Subject: [PATCH] Don't forget to cleanup. --- volatility/framework/automagic/pdbscan.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/volatility/framework/automagic/pdbscan.py b/volatility/framework/automagic/pdbscan.py index 0356d843a..4df8f8a66 100644 --- a/volatility/framework/automagic/pdbscan.py +++ b/volatility/framework/automagic/pdbscan.py @@ -219,6 +219,8 @@ class KernelPDBScanner(interfaces.automagic.AutomagicInterface): os.makedirs(os.path.dirname(output_file), exist_ok = True) with lzma.open(output_file, "w") as f: f.write(bytes(json.dumps(json_output, indent = 2, sort_keys = True), 'utf-8')) + # Clean up after ourselves + os.remove(filename) # Try again for value in intermed.IntermediateSymbolTable.file_symbol_url("windows", filter_string):