Agent: Fix typos and comments in WMI and HostExploiter.py
This commit is contained in:
parent
b70144f5e1
commit
bd07459dab
|
@ -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):
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue