forked from p15670423/monkey
Agent: Reword a log message in ransomware payload
This commit is contained in:
parent
7047fa0cd0
commit
593095cdcf
|
@ -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}")
|
||||||
|
|
Loading…
Reference in New Issue