Agent: Log why exploiter got interrupted when stopped

This commit is contained in:
vakaris_zilius 2022-03-16 15:58:34 +00:00 committed by Mike Salvatore
parent 520e98032a
commit 1c79efc941
1 changed files with 2 additions and 0 deletions

View File

@ -98,6 +98,8 @@ class HostExploiter:
# This method should be refactored to raise an exception to reduce duplication in the
# "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")
return self.interrupt.is_set()
def post_exploit(self):