Agent: Reword a log message in ransomware payload

This commit is contained in:
Mike Salvatore 2022-03-25 10:53:08 -04:00
parent 7047fa0cd0
commit 593095cdcf
1 changed files with 1 additions and 3 deletions

View File

@ -56,9 +56,7 @@ class Ransomware:
def _encrypt_files(self, files_to_encrypt: Iterable[Path], interrupt: threading.Event): def _encrypt_files(self, files_to_encrypt: Iterable[Path], interrupt: threading.Event):
logger.info(f"Encrypting files in {self._target_directory}") logger.info(f"Encrypting files in {self._target_directory}")
interrupted_message = ( interrupted_message = "Received a stop signal, skipping encryption of remaining files"
"Received a stop signal, skipping remaining files for encryption of ransomware payload"
)
for filepath in interruptible_iter(files_to_encrypt, interrupt, interrupted_message): for filepath in interruptible_iter(files_to_encrypt, interrupt, interrupted_message):
try: try:
logger.debug(f"Encrypting {filepath}") logger.debug(f"Encrypting {filepath}")