forked from p15670423/monkey
Update chaos monkey readme after it's tested
This commit is contained in:
parent
7807a46769
commit
35b18c68a9
|
@ -10,44 +10,61 @@ The monkey is composed of three separate parts.
|
||||||
1. Install python 2.7. Preferably you should use ActiveState Python which includes pywin32 built in.
|
1. Install python 2.7. Preferably you should use ActiveState Python which includes pywin32 built in.
|
||||||
You must use an up to date version, at least version 2.7.10
|
You must use an up to date version, at least version 2.7.10
|
||||||
https://www.python.org/download/releases/2.7/
|
https://www.python.org/download/releases/2.7/
|
||||||
If not using ActiveState, install pywin32, minimum build 219
|
2. Install pywin32 (if you didn't install ActiveState Python)
|
||||||
http://sourceforge.net/projects/pywin32/files/pywin32
|
Install pywin32, minimum build 219
|
||||||
3. a. install VCForPython27.msi
|
http://sourceforge.net/projects/pywin32/files/pywin32
|
||||||
https://aka.ms/vcpython27
|
3. Add python directories to PATH environment variable (if you didn't install ActiveState Python)
|
||||||
b. if not installed, install Microsoft Visual C++ 2010 SP1 Redistributable Package
|
a. Run the following command on a cmd console (Replace C:\Python27 with your python directory if it's different)
|
||||||
32bit: http://www.microsoft.com/en-us/download/details.aspx?id=8328
|
setx /M PATH "%PATH%;C:\Python27;C:\Pytohn27\Scripts
|
||||||
64bit: http://www.microsoft.com/en-us/download/details.aspx?id=13523
|
b. Close the console, make sure you execute all commands in a new cmd console from now on.
|
||||||
4. Download the dependent python packages using
|
4. Install pip
|
||||||
pip install -r requirements.txt
|
a. Download and run the pip installer
|
||||||
5. Download and extract UPX binary to [source-path]\monkey\chaos_monkey\bin\upx.exe:
|
https://bootstrap.pypa.io/get-pip.py
|
||||||
https://github.com/upx/upx/releases/download/v3.94/upx394w.zip
|
5. Install further dependencies
|
||||||
6. To build the final exe:
|
a. install VCForPython27.msi
|
||||||
cd [code location]/chaos_monkey
|
https://aka.ms/vcpython27
|
||||||
build_windows.bat
|
b. if not installed, install Microsoft Visual C++ 2010 SP1 Redistributable Package
|
||||||
output is placed under dist\monkey.exe
|
32bit: http://www.microsoft.com/en-us/download/details.aspx?id=8328
|
||||||
|
64bit: http://www.microsoft.com/en-us/download/details.aspx?id=13523
|
||||||
|
6. Download the dependent python packages using
|
||||||
|
pip install -r requirements.txt
|
||||||
|
7. Download and extract UPX binary to [source-path]\monkey\chaos_monkey\bin\upx.exe:
|
||||||
|
https://github.com/upx/upx/releases/download/v3.94/upx394w.zip
|
||||||
|
8. Build/Download Sambacry and Mimikatz binaries
|
||||||
|
a. Build/Download according to sections at the end of this readme.
|
||||||
|
b. Place the binaries under [code location]\chaos_monkey\bin
|
||||||
|
9. To build the final exe:
|
||||||
|
cd [code location]/chaos_monkey
|
||||||
|
build_windows.bat
|
||||||
|
output is placed under dist\monkey.exe
|
||||||
|
|
||||||
--- Linux ---
|
--- Linux ---
|
||||||
|
|
||||||
Tested on Ubuntu 16.04 and 17.04.
|
Tested on Ubuntu 16.04 and 17.04.
|
||||||
|
|
||||||
1. Run:
|
1. Install dependencies by running:
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install python-pip python-dev libffi-dev upx libssl-dev libc++1
|
sudo apt-get install python-pip python-dev libffi-dev upx libssl-dev libc++1
|
||||||
Install the python packages listed in requirements.txt using pip
|
Install the python packages listed in requirements.txt using pip
|
||||||
pip install -r requirements.txt
|
cd [code location]/chaos_monkey
|
||||||
2. Place the source code in code/monkey/chaos_monkey
|
pip install -r requirements.txt
|
||||||
3. To build, run in terminal:
|
2. Build Sambacry binaries
|
||||||
cd [code location]/chaos_monkey
|
a. Build/Download according to sections at the end of this readme.
|
||||||
chmod +x build_linux.sh
|
b. Place the binaries under [code location]\chaos_monkey\bin
|
||||||
./build_linux.sh
|
3. To build, run in terminal:
|
||||||
output is placed under dist/monkey
|
cd [code location]/chaos_monkey
|
||||||
|
chmod +x build_linux.sh
|
||||||
|
./build_linux.sh
|
||||||
|
output is placed under dist/monkey
|
||||||
|
|
||||||
-- Sambacry --
|
-- Sambacry --
|
||||||
|
|
||||||
Sambacry requires two standalone binaries to execute remotely.
|
Sambacry requires two standalone binaries to execute remotely.
|
||||||
Compiling them requires gcc.
|
1. Install gcc-multilib if it's not installed
|
||||||
cd [code location]/chaos_monkey/monkey_utils/sambacry_monkey_runner
|
sudo apt-get install gcc-multilib
|
||||||
./build.sh
|
2. Build the binaries
|
||||||
|
cd [code location]/chaos_monkey/monkey_utils/sambacry_monkey_runner
|
||||||
|
./build.sh
|
||||||
|
|
||||||
-- Mimikatz --
|
-- Mimikatz --
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue