Agent: Fix typos and comments in WMI and HostExploiter.py

This commit is contained in:
vakaris_zilius 2022-03-18 08:44:35 +00:00
parent b70144f5e1
commit bd07459dab
2 changed files with 4 additions and 4 deletions

View File

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

View File

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