Change filename to account for bitness.

This commit is contained in:
Daniel Goldberg 2020-01-23 15:50:56 +02:00
parent 32db1cae1b
commit 61a41b407b
2 changed files with 10 additions and 3 deletions

View File

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

View File

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