From 3b7b0f0998da594a26a7a92af26f56df1defc356 Mon Sep 17 00:00:00 2001 From: Shay Nehmad Date: Mon, 7 Oct 2019 14:12:06 +0300 Subject: [PATCH] Removed SHA-512 from exec hashes --- monkey/monkey_island/cc/resources/monkey_download.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/resources/monkey_download.py b/monkey/monkey_island/cc/resources/monkey_download.py index 917b205b8..d5b30e9a8 100644 --- a/monkey/monkey_island/cc/resources/monkey_download.py +++ b/monkey/monkey_island/cc/resources/monkey_download.py @@ -108,9 +108,8 @@ class MonkeyDownload(flask_restful.Resource): if os.path.isfile(filepath): with open(filepath, 'rb') as monkey_exec_file: file_contents = monkey_exec_file.read() - logger.debug("{} hashes:\nSHA-512 {}\nSHA-256 {}".format( + logger.debug("{} hashes:\nSHA-256 {}".format( filename, - hashlib.sha512(file_contents).hexdigest(), hashlib.sha256(file_contents).hexdigest() )) else: