agent: Use variable 'is_32bit' for function argument

This commit is contained in:
Shreya Malviya 2021-08-20 20:30:38 +05:30
parent ba8c44d22c
commit dc4a5fbb85
1 changed files with 2 additions and 1 deletions

View File

@ -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: