forked from p34709852/monkey
Agent: Check all potential urls in Hadoop
This commit is contained in:
parent
66f5d7a86a
commit
7a664218bd
|
@ -67,11 +67,12 @@ class HadoopExploiter(WebRCE):
|
||||||
|
|
||||||
command = self._build_command(monkey_path_on_victim, http_path)
|
command = self._build_command(monkey_path_on_victim, http_path)
|
||||||
try:
|
try:
|
||||||
|
for url in potential_urls:
|
||||||
if self.exploit(potential_urls[0], command):
|
if self.exploit(url, command):
|
||||||
self.add_executed_cmd(command)
|
self.add_executed_cmd(command)
|
||||||
self.exploit_result.exploitation_success = True
|
self.exploit_result.exploitation_success = True
|
||||||
self.exploit_result.propagation_success = True
|
self.exploit_result.propagation_success = True
|
||||||
|
break
|
||||||
finally:
|
finally:
|
||||||
http_thread.join(self.DOWNLOAD_TIMEOUT)
|
http_thread.join(self.DOWNLOAD_TIMEOUT)
|
||||||
http_thread.stop()
|
http_thread.stop()
|
||||||
|
|
Loading…
Reference in New Issue