From bd07459dab0ad6b2cf5243d0a26c4c9883a92a28 Mon Sep 17 00:00:00 2001 From: vakaris_zilius Date: Fri, 18 Mar 2022 08:44:35 +0000 Subject: [PATCH] Agent: Fix typos and comments in WMI and HostExploiter.py --- monkey/infection_monkey/exploit/HostExploiter.py | 4 ++-- monkey/infection_monkey/exploit/wmiexec.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/monkey/infection_monkey/exploit/HostExploiter.py b/monkey/infection_monkey/exploit/HostExploiter.py index 032a0564c..2e198ac4c 100644 --- a/monkey/infection_monkey/exploit/HostExploiter.py +++ b/monkey/infection_monkey/exploit/HostExploiter.py @@ -99,8 +99,8 @@ class HostExploiter: # "if is_interrupted: return self.exploitation_results" # Ideally the user should only do "check_for_interrupt()" if self.interrupt.is_set(): - logger.info("Exploiter has been interrupted by a stop signal from the Island") - self.exploit_result["error_message"] = "Exploiter has been interrupted by a stop signal from the Island" + logger.info("Exploiter has been interrupted") + self.exploit_result.error_message = "Exploiter has been interrupted" return self.interrupt.is_set() def post_exploit(self): diff --git a/monkey/infection_monkey/exploit/wmiexec.py b/monkey/infection_monkey/exploit/wmiexec.py index 4adce62d9..69eab12dd 100644 --- a/monkey/infection_monkey/exploit/wmiexec.py +++ b/monkey/infection_monkey/exploit/wmiexec.py @@ -32,7 +32,7 @@ class WmiExploiter(HostExploiter): intp_creds = interruptable_iter( creds, self.interrupt, - "WMI exploiter has been interrupted by a stop signal from the Island", + "WMI exploiter has been interrupted", logging.INFO, ) @@ -125,7 +125,7 @@ class WmiExploiter(HostExploiter): cmdline, ) logger.debug(error_message) - self.exploit_results.error_message = error_message + self.exploit_result.error_message = error_message result.RemRelease() wmi_connection.close()