agent: Add note to readme to run build_linux.sh with `pipenv run`

This commit is contained in:
Mike Salvatore 2021-04-26 10:47:00 -04:00
parent d83fc2e914
commit afa412ca47
1 changed files with 5 additions and 5 deletions

View File

@ -14,16 +14,16 @@ The monkey is composed of three separate parts.
1. Install python 3.7.4 and choose **ADD to PATH** option when installing. 1. Install python 3.7.4 and choose **ADD to PATH** option when installing.
Download and install from: <https://www.python.org/ftp/python/3.7.4/> Download and install from: <https://www.python.org/ftp/python/3.7.4/>
In case you still need to add python directories to path: In case you still need to add python directories to path:
- Run the following command on a cmd console (Replace C:\Python37 with your python directory if it's different) - Run the following command on a cmd console (Replace C:\Python37 with your python directory if it's different)
`setx /M PATH "%PATH%;C:\Python37;C:\Python37\Scripts` `setx /M PATH "%PATH%;C:\Python37;C:\Python37\Scripts`
- Close the console, make sure you execute all commands in a new cmd console from now on. - Close the console, make sure you execute all commands in a new cmd console from now on.
2. Install further dependencies 2. Install further dependencies
- if not installed, install Microsoft Visual C++ 2017 SP1 Redistributable Package - if not installed, install Microsoft Visual C++ 2017 SP1 Redistributable Package
- 32bit: <https://aka.ms/vs/16/release/vc_redist.x86.exe> - 32bit: <https://aka.ms/vs/16/release/vc_redist.x86.exe>
- 64bit: <https://go.microsoft.com/fwlink/?LinkId=746572> - 64bit: <https://go.microsoft.com/fwlink/?LinkId=746572>
3. Download the dependent python packages using 3. Download the dependent python packages using
`pip install -r requirements.txt` `pip install -r requirements.txt`
4. Download and extract UPX binary to monkey\infection_monkey\bin\upx.exe: 4. Download and extract UPX binary to monkey\infection_monkey\bin\upx.exe:
<https://github.com/upx/upx/releases/download/v3.94/upx394w.zip> <https://github.com/upx/upx/releases/download/v3.94/upx394w.zip>
@ -63,8 +63,8 @@ Tested on Ubuntu 16.04.
5. To build, run in terminal: 5. To build, run in terminal:
- `cd [code location]/infection_monkey` - `cd [code location]/infection_monkey`
- `chmod +x build_linux.sh` - `chmod +x build_linux.sh`
- `./build_linux.sh` - `pipenv run ./build_linux.sh`
output is placed under `dist/monkey32` or `dist/monkey64` depending on your version of python output is placed under `dist/monkey32` or `dist/monkey64` depending on your version of python
### Sambacry ### Sambacry