Agent: Use correct publish method names

This commit is contained in:
Kekoa Kaaikala 2022-10-04 18:26:03 +00:00 committed by Ilija Lazoroski
parent 9c185a3a78
commit 57af640317
1 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ class HadoopExploiter(WebRCE):
self.add_vulnerable_urls(urls, True) self.add_vulnerable_urls(urls, True)
if not self.vulnerable_urls: if not self.vulnerable_urls:
self.exploit.error_message = f"No vulnerable urls has been found for {self.host}" self.exploit.error_message = f"No vulnerable urls has been found for {self.host}"
self.publish_exploitation_event( self._publish_exploitation_event(
target=self.host.ip_addr, target=self.host.ip_addr,
exploitation_success=False, exploitation_success=False,
error_message=self.exploit_result.error_message, error_message=self.exploit_result.error_message,
@ -59,7 +59,7 @@ class HadoopExploiter(WebRCE):
monkey_path_on_victim = get_agent_dst_path(self.host) monkey_path_on_victim = get_agent_dst_path(self.host)
except KeyError: except KeyError:
self.exploit_result.error_message = f"No coressponding agent found for {self.host}" self.exploit_result.error_message = f"No coressponding agent found for {self.host}"
self.publish_exploitation_event( self._publish_exploitation_event(
target=self.host.ip_addr, target=self.host.ip_addr,
exploitation_success=False, exploitation_success=False,
error_message=self.exploit_result.error_message, error_message=self.exploit_result.error_message,
@ -79,12 +79,12 @@ class HadoopExploiter(WebRCE):
self.exploit_result.exploitation_success = True self.exploit_result.exploitation_success = True
self.exploit_result.propagation_success = True self.exploit_result.propagation_success = True
self.publish_exploitation_event( self._publish_exploitation_event(
target=self.host.ip_addr, target=self.host.ip_addr,
exploitation_success=True, exploitation_success=True,
tags=(HADOOP_EXPLOITER_TAG, T1203_ATTACK_TECHNIQUE_TAG), tags=(HADOOP_EXPLOITER_TAG, T1203_ATTACK_TECHNIQUE_TAG),
) )
self.publish_propagation_event( self._publish_propagation_event(
target=self.host.ip_addr, target=self.host.ip_addr,
propagation_success=True, propagation_success=True,
tags=(HADOOP_EXPLOITER_TAG, T1203_ATTACK_TECHNIQUE_TAG), tags=(HADOOP_EXPLOITER_TAG, T1203_ATTACK_TECHNIQUE_TAG),