From 8e5291ecb4c03a0a4c2f198209b70773fd9af07d Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Sat, 14 Apr 2018 23:52:59 +0100 Subject: [PATCH] Make sure we write out bytes, not memory. --- volatility/cli/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volatility/cli/__init__.py b/volatility/cli/__init__.py index 14326ad0a..d5e640cd6 100644 --- a/volatility/cli/__init__.py +++ b/volatility/cli/__init__.py @@ -225,7 +225,7 @@ class CommandLine(interfaces.plugins.FileConsumerInterface): if not os.path.exists(output_filename): with open(output_filename, "wb") as current_file: - current_file.write(filedata.data.getbuffer()) + current_file.write(filedata.data.getvalue()) vollog.log(logging.INFO, "Saved stored plugin file: {}".format(output_filename)) else: vollog.warning("Refusing to overwrite an existing file: {}".format(output_filename))