From 7e4ec00454beb1776bf3bec18b397d8fb02e3b72 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 21 Mar 2022 07:21:05 -0400 Subject: [PATCH] Agent: Add error message to exploit_result when SMB exploiter gives up --- monkey/infection_monkey/exploit/smbexec.py | 1 + 1 file changed, 1 insertion(+) diff --git a/monkey/infection_monkey/exploit/smbexec.py b/monkey/infection_monkey/exploit/smbexec.py index be94becaf..689484c25 100644 --- a/monkey/infection_monkey/exploit/smbexec.py +++ b/monkey/infection_monkey/exploit/smbexec.py @@ -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