From 447138c07971b8aae6257212ca2107ff3c503817 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 22 Jun 2021 21:52:18 -0400 Subject: [PATCH] agent: Rename RansomewarePayload.target_dir -> _target_dir --- monkey/infection_monkey/ransomware/ransomware_payload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/infection_monkey/ransomware/ransomware_payload.py b/monkey/infection_monkey/ransomware/ransomware_payload.py index ca48e0b3e..ce18476ed 100644 --- a/monkey/infection_monkey/ransomware/ransomware_payload.py +++ b/monkey/infection_monkey/ransomware/ransomware_payload.py @@ -23,7 +23,7 @@ class RansomewarePayload: LOG.info(f"Windows dir configured for encryption is {config['windows_dir']}") LOG.info(f"Linux dir configured for encryption is {config['linux_dir']}") - self.target_dir = Path(config["windows_dir"] if is_windows_os() else config["linux_dir"]) + self._target_dir = Path(config["windows_dir"] if is_windows_os() else config["linux_dir"]) self._valid_file_extensions_for_encryption = VALID_FILE_EXTENSIONS_FOR_ENCRYPTION.copy() self._valid_file_extensions_for_encryption.discard(EXTENSION) @@ -38,7 +38,7 @@ class RansomewarePayload: is_not_symlink_filter, ] - all_files = get_all_regular_files_in_directory(self.target_dir) + all_files = get_all_regular_files_in_directory(self._target_dir) return filter_files(all_files, file_filters) def _encrypt_files(self, file_list):