diff --git a/monkey/infection_monkey/exploit/powershell_utils/powershell_client.py b/monkey/infection_monkey/exploit/powershell_utils/powershell_client.py index e739901f1..ad5854d4a 100644 --- a/monkey/infection_monkey/exploit/powershell_utils/powershell_client.py +++ b/monkey/infection_monkey/exploit/powershell_utils/powershell_client.py @@ -85,8 +85,8 @@ class PowerShellClient(IPowerShellClient): return output def get_host_architecture(self) -> Union[WIN_ARCH_32, WIN_ARCH_64]: - output = self._client.execute_cmd(GET_ARCH_WINDOWS) - if "64-bit" in output: + stdout, _, _ = self._client.execute_cmd(GET_ARCH_WINDOWS) + if "64-bit" in stdout: return WIN_ARCH_64 return WIN_ARCH_32