diff --git a/monkey/infection_monkey/exploit/powershell.py b/monkey/infection_monkey/exploit/powershell.py index a3328bccd..c4cd1f459 100644 --- a/monkey/infection_monkey/exploit/powershell.py +++ b/monkey/infection_monkey/exploit/powershell.py @@ -59,8 +59,9 @@ class PowershellExploiter(HostExploiter): return False arch = self.get_host_arch() + is_32bit = arch == WIN_ARCH_32 - monkey_fs_path = get_target_monkey_by_os(is_windows=True, is_32bit=(arch == WIN_ARCH_32)) + monkey_fs_path = get_target_monkey_by_os(is_windows=True, is_32bit=is_32bit) # write virtual file to actual local file with monkeyfs.open(monkey_fs_path) as monkey_virtual_file: