From dc4a5fbb85f8ad8f2ef7a8e6296c4ef4e9ee4e4e Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Fri, 20 Aug 2021 20:30:38 +0530 Subject: [PATCH] agent: Use variable 'is_32bit' for function argument --- monkey/infection_monkey/exploit/powershell.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: