From d108812e263e7e9e18db7cae4146e5ec876bd433 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Fri, 9 Jul 2021 14:49:00 -0400 Subject: [PATCH] Agent: Remove redundant condition from RansomwarePayload.run_payload() --- monkey/infection_monkey/ransomware/ransomware_payload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/ransomware/ransomware_payload.py b/monkey/infection_monkey/ransomware/ransomware_payload.py index 327f3b581..9324542ad 100644 --- a/monkey/infection_monkey/ransomware/ransomware_payload.py +++ b/monkey/infection_monkey/ransomware/ransomware_payload.py @@ -61,7 +61,7 @@ class RansomwarePayload: LOG.info("Running ransomware payload") - if self._encryption_enabled and self._target_dir: + if self._encryption_enabled: file_list = self._find_files() self._encrypt_files(file_list)