From f5ebd2d39a34a85b81582c8fe5b96d2c8b3eb1ef Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Wed, 23 Jun 2021 11:48:24 +0300 Subject: [PATCH] Fix a bug of incorrect access to ransomware config options in ransomware_payload.py --- monkey/infection_monkey/ransomware/ransomware_payload.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/monkey/infection_monkey/ransomware/ransomware_payload.py b/monkey/infection_monkey/ransomware/ransomware_payload.py index 941055062..f9141f77d 100644 --- a/monkey/infection_monkey/ransomware/ransomware_payload.py +++ b/monkey/infection_monkey/ransomware/ransomware_payload.py @@ -9,9 +9,12 @@ class RansomewarePayload: def run_payload(self): LOG.info( - f"Windows dir configured for encryption is " f"{self.config['windows_dir_ransom']}" + f"Windows dir configured for encryption is " + f"{self.config['directories']['windows_dir']}" + ) + LOG.info( + f"Linux dir configured for encryption is " f"{self.config['directories']['linux_dir']}" ) - LOG.info(f"Linux dir configured for encryption is " f"{self.config['linux_dir_ransom']}") file_list = self._find_files() self._encrypt_files(file_list)