Agent: Send failed exploitation event

This commit is contained in:
Kekoa Kaaikala 2022-10-05 12:31:19 +00:00 committed by Ilija Lazoroski
parent 0c4b90beb5
commit ac69064dec
1 changed files with 8 additions and 1 deletions

View File

@ -199,7 +199,14 @@ class Log4ShellExploiter(WebRCE):
time.sleep(1)
logger.debug("Timed out while waiting for victim to download the java bytecode")
error_message = "Timed out while waiting for victim to download the java bytecode"
logger.debug(error_message)
self._publish_exploitation_event(
target=self.host.ip_addr,
exploitation_success=False,
error_message=error_message,
tags=(LOG4SHELL_EXPLOITER_TAG, T1203_ATTACK_TECHNIQUE_TAG),
)
return False
def _wait_for_victim_to_download_agent(self):