Agent: fix log4shell exploitation indication

This commit is contained in:
vakarisz 2022-01-05 15:47:45 +02:00
parent c382987430
commit 5ac6d12fe9
1 changed files with 3 additions and 1 deletions

View File

@ -82,7 +82,9 @@ class Log4ShellExploiter(WebRCE):
ldap_thread.join(Log4ShellExploiter.DOWNLOAD_TIMEOUT)
ldap.stop()
return True
# If java class was downloaded it means that victim is vulnerable
return Log4ShellExploiter.HTTPHandler.class_downloaded
def build_ldap_payload(self):
interface_ip = get_interface_to_target(self.host.ip_addr)