Agent: Add error message to exploit_result when SMB exploiter gives up

This commit is contained in:
Mike Salvatore 2022-03-21 07:21:05 -04:00
parent 9ca8bc1a60
commit 7e4ec00454
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ class SMBExploiter(HostExploiter):
if not self.exploit_result.exploitation_success:
logger.debug("Exploiter SmbExec is giving up...")
self.exploit_result.error_message = "Failed to authenticate to the victim over SMB"
return self.exploit_result
# execute the remote dropper in case the path isn't final