Agent: Use correct publish method names
This commit is contained in:
parent
9c185a3a78
commit
57af640317
|
@ -47,7 +47,7 @@ class HadoopExploiter(WebRCE):
|
|||
self.add_vulnerable_urls(urls, True)
|
||||
if not self.vulnerable_urls:
|
||||
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,
|
||||
exploitation_success=False,
|
||||
error_message=self.exploit_result.error_message,
|
||||
|
@ -59,7 +59,7 @@ class HadoopExploiter(WebRCE):
|
|||
monkey_path_on_victim = get_agent_dst_path(self.host)
|
||||
except KeyError:
|
||||
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,
|
||||
exploitation_success=False,
|
||||
error_message=self.exploit_result.error_message,
|
||||
|
@ -79,12 +79,12 @@ class HadoopExploiter(WebRCE):
|
|||
self.exploit_result.exploitation_success = True
|
||||
self.exploit_result.propagation_success = True
|
||||
|
||||
self.publish_exploitation_event(
|
||||
self._publish_exploitation_event(
|
||||
target=self.host.ip_addr,
|
||||
exploitation_success=True,
|
||||
tags=(HADOOP_EXPLOITER_TAG, T1203_ATTACK_TECHNIQUE_TAG),
|
||||
)
|
||||
self.publish_propagation_event(
|
||||
self._publish_propagation_event(
|
||||
target=self.host.ip_addr,
|
||||
propagation_success=True,
|
||||
tags=(HADOOP_EXPLOITER_TAG, T1203_ATTACK_TECHNIQUE_TAG),
|
||||
|
|
Loading…
Reference in New Issue