Agent: Remove errant exploitation event from hadoop

If no potential URLs are found, then no exploit is attempted, so there's
no reason to publish an ExploitationEvent.
This commit is contained in:
Mike Salvatore 2022-10-07 08:35:24 -04:00
parent 25073be9f3
commit 66f5d7a86a
1 changed files with 0 additions and 1 deletions

View File

@ -57,7 +57,6 @@ class HadoopExploiter(WebRCE):
self.exploit_result.error_message = ( self.exploit_result.error_message = (
f"No potential exploitable urls has been found for {self.host}" f"No potential exploitable urls has been found for {self.host}"
) )
self._publish_exploitation_event(False, error_message=self.exploit_result.error_message)
return self.exploit_result return self.exploit_result
monkey_path_on_victim = get_agent_dst_path(self.host) monkey_path_on_victim = get_agent_dst_path(self.host)