Agent: Add TODO in Log4ShellExploiter

This commit is contained in:
Mike Salvatore 2022-10-06 17:01:06 -04:00
parent ead979c6ca
commit 9c2cdf15e2
1 changed files with 2 additions and 1 deletions

View File

@ -174,9 +174,10 @@ class Log4ShellExploiter(WebRCE):
)
logger.warning(error_message)
self._publish_exploitation_event(timestamp, False, error_message=error_message)
# TODO: _wait_for_victim() gets called even if trigger_exploit() raises an
# exception. Is that the desired behavior?
if self._wait_for_victim(timestamp):
self.exploit_info["vulnerable_service"] = {
"service_name": exploit.service_name,