From feda0718cc8acda0578809a728530dfadc6cd98e Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Thu, 15 Jul 2021 11:52:17 -0400 Subject: [PATCH] Agent: Set default self.target_directory to None --- monkey/infection_monkey/ransomware/ransomware_config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monkey/infection_monkey/ransomware/ransomware_config.py b/monkey/infection_monkey/ransomware/ransomware_config.py index 26805c47c..e1b1cb2c4 100644 --- a/monkey/infection_monkey/ransomware/ransomware_config.py +++ b/monkey/infection_monkey/ransomware/ransomware_config.py @@ -10,6 +10,8 @@ class RansomwareConfig: def __init__(self, config: dict): self.encryption_enabled = config["encryption"]["enabled"] self.readme_enabled = config["other_behaviors"]["readme"] + + self.target_directory = None self._set_target_directory(config["encryption"]["directories"]) def _set_target_directory(self, os_target_directories: dict):