Fix a bug of incorrect access to ransomware config options in ransomware_payload.py

This commit is contained in:
VakarisZ 2021-06-23 11:48:24 +03:00
parent 901485c9e4
commit f5ebd2d39a
1 changed files with 5 additions and 2 deletions

View File

@ -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)