sdf11233 #21

Merged
p15693087 merged 29 commits from jd003 into 2267-add-services-to-machine 2022-10-19 15:20:24 +08:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit 57af640317 - Show all commits

View File

@ -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),