Agent: encryption_enabled renamed using "private" naming convention

This commit is contained in:
Mike Salvatore 2021-06-30 06:53:27 -04:00
parent aecb80566b
commit 771aa747a8
1 changed files with 5 additions and 3 deletions

View File

@ -21,8 +21,10 @@ README_DEST = "README.txt"
class RansomwarePayload:
def __init__(self, config: dict, telemetry_messenger: ITelemetryMessenger):
self.encryption_enabled = config["encryption"]["enabled"]
LOG.info(f"Encryption routine for ransomware simulation enabled: {self.encryption_enabled}")
self._encryption_enabled = config["encryption"]["enabled"]
LOG.info(
f"Encryption routine for ransomware simulation enabled: {self._encryption_enabled}"
)
target_directories = config["encryption"]["directories"]
LOG.info(
@ -47,7 +49,7 @@ class RansomwarePayload:
self._telemetry_messenger = telemetry_messenger
def run_payload(self):
if self.encryption_enabled:
if self._encryption_enabled:
LOG.info("Running ransomware payload")
file_list = self._find_files()
self._encrypt_files(file_list)