From 61a41b407b8a4f330ba93f81aec4bc8e383cdf3f Mon Sep 17 00:00:00 2001 From: Daniel Goldberg <danielg@guardicore.com> Date: Thu, 23 Jan 2020 15:50:56 +0200 Subject: [PATCH] Change filename to account for bitness. --- monkey/infection_monkey/monkey.spec | 9 ++++++++- monkey/infection_monkey/readme.md | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/monkey/infection_monkey/monkey.spec b/monkey/infection_monkey/monkey.spec index 3a376a73b..2157b697c 100644 --- a/monkey/infection_monkey/monkey.spec +++ b/monkey/infection_monkey/monkey.spec @@ -94,7 +94,14 @@ def get_traceroute_binaries(): def get_monkey_filename(): - return 'monkey.exe' if is_windows() else 'monkey' + name = 'monkey' + if is_32_bit(): + name = name+"32" + else: + name = name+"64" + if is_windows(): + name = name+".exe" + return name def get_exe_strip(): diff --git a/monkey/infection_monkey/readme.md b/monkey/infection_monkey/readme.md index d6e17acdb..8522767dd 100644 --- a/monkey/infection_monkey/readme.md +++ b/monkey/infection_monkey/readme.md @@ -34,7 +34,7 @@ The monkey is composed of three separate parts. 6. To build the final exe: - `cd monkey\infection_monkey` - `build_windows.bat` - - `output is placed under dist\monkey.exe` + - output is placed under `dist\monkey32.exe` or `dist\monkey64.exe` depending on your version of Python ## Linux @@ -66,7 +66,7 @@ Tested on Ubuntu 16.04. - `chmod +x build_linux.sh` - `./build_linux.sh` - output is placed under dist/monkey + output is placed under `dist/monkey32` or `dist/monkey64` depending on your version of python ### Sambacry