From e09f15b1bc0a81af17af557922fcf4e9a4f8145b Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 14 Mar 2022 12:54:23 -0400 Subject: [PATCH] Agent: Add a debug log message on successful auth to PowerShellClient --- .../exploit/powershell_utils/powershell_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/monkey/infection_monkey/exploit/powershell_utils/powershell_client.py b/monkey/infection_monkey/exploit/powershell_utils/powershell_client.py index 82c073ff2..80aefee00 100644 --- a/monkey/infection_monkey/exploit/powershell_utils/powershell_client.py +++ b/monkey/infection_monkey/exploit/powershell_utils/powershell_client.py @@ -86,6 +86,7 @@ class PowerShellClient(IPowerShellClient): # Attempt to execute dir command to know if authentication was successful. This will raise # an exception if authentication was not successful. self.execute_cmd("dir") + logger.debug("Successfully authenticated to remote PowerShell service") def execute_cmd(self, cmd: str) -> str: output, _, _ = self._client.execute_cmd(cmd)