From e8a162ab5ba69d95d73c20135a8904875d23f250 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Tue, 15 Mar 2022 16:53:00 +0100 Subject: [PATCH] Agent: Fix powershell second hop authentication On the second hop powershell is trying to authenticate with only a dummy username and passsword which is not enough. We need to provide the local domain for the username, which case is '.\' --- monkey/infection_monkey/exploit/powershell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/exploit/powershell.py b/monkey/infection_monkey/exploit/powershell.py index 2a0d800de..7a46f8cc2 100644 --- a/monkey/infection_monkey/exploit/powershell.py +++ b/monkey/infection_monkey/exploit/powershell.py @@ -115,7 +115,7 @@ class PowerShellExploiter(HostExploiter): def _try_ssl_login(self, use_ssl: bool): credentials = Credentials( - username="dummy_username", + username=".\\dummy_username", secret="dummy_password", secret_type=SecretType.PASSWORD, )