forked from p34709852/monkey
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"
|
# "if is_interrupted: return self.exploitation_results"
|
||||||
# Ideally the user should only do "check_for_interrupt()"
|
# Ideally the user should only do "check_for_interrupt()"
|
||||||
if self.interrupt.is_set():
|
if self.interrupt.is_set():
|
||||||
logger.info("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 by a stop signal from the Island"
|
self.exploit_result.error_message = "Exploiter has been interrupted"
|
||||||
return self.interrupt.is_set()
|
return self.interrupt.is_set()
|
||||||
|
|
||||||
def post_exploit(self):
|
def post_exploit(self):
|
||||||
|
|
|
@ -32,7 +32,7 @@ class WmiExploiter(HostExploiter):
|
||||||
intp_creds = interruptable_iter(
|
intp_creds = interruptable_iter(
|
||||||
creds,
|
creds,
|
||||||
self.interrupt,
|
self.interrupt,
|
||||||
"WMI exploiter has been interrupted by a stop signal from the Island",
|
"WMI exploiter has been interrupted",
|
||||||
logging.INFO,
|
logging.INFO,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ class WmiExploiter(HostExploiter):
|
||||||
cmdline,
|
cmdline,
|
||||||
)
|
)
|
||||||
logger.debug(error_message)
|
logger.debug(error_message)
|
||||||
self.exploit_results.error_message = error_message
|
self.exploit_result.error_message = error_message
|
||||||
|
|
||||||
result.RemRelease()
|
result.RemRelease()
|
||||||
wmi_connection.close()
|
wmi_connection.close()
|
||||||
|
|
Loading…
Reference in New Issue