forked from p15670423/monkey
Agent: fix log4shell to always close ldap and http servers, even on errors
This commit is contained in:
parent
9d5ea0f41f
commit
7bace927f8
|
@ -69,8 +69,9 @@ class Log4ShellExploiter(WebRCE):
|
|||
ldap_thread = ldap.get_run_thread()
|
||||
ldap_thread.start()
|
||||
|
||||
self._trigger_exploit()
|
||||
|
||||
try:
|
||||
self.exploit(None, None)
|
||||
finally:
|
||||
http_thread.join(Log4ShellExploiter.DOWNLOAD_TIMEOUT)
|
||||
http_thread.stop()
|
||||
|
||||
|
|
Loading…
Reference in New Issue