monkey/monkey_island/readme.txt

80 lines
3.6 KiB
Plaintext
Raw Normal View History

How to set up the Monkey Island server:
---------------- On Windows ----------------:
2017-10-17 22:14:28 +08:00
1. Create folder "bin" under monkey_island
2017-09-12 19:25:47 +08:00
2. Place portable version of Python 2.7
2.1. Download and install from: https://www.python.org/download/releases/2.7/
2017-10-17 22:14:28 +08:00
2.2. Install the required python libraries using "python -m pip install -r monkey_island\requirements.txt"
2.3. Copy contents from installation path (Usually C:\Python27) to monkey_island\bin\Python27
2.4. Copy Python27.dll from System32 folder (Usually C:\Windows\System32 or C:\Python27) to monkey_island\bin\Python27
2.5. (Optional) You may uninstall Python27 if you like.
2017-09-12 19:25:47 +08:00
3. Place portable version of mongodb
2017-10-18 00:11:42 +08:00
3.1. Download from: https://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-latest.zip
2017-09-12 19:25:47 +08:00
3.2. Extract contents from bin folder to monkey_island\bin\mongodb.
4. Place portable version of OpenSSL
2017-10-17 22:14:28 +08:00
4.1. Download from: https://indy.fulgan.com/SSL/openssl-1.0.2l-i386-win32.zip
2017-09-12 19:25:47 +08:00
4.2. Extract content from bin folder to monkey_island\bin\openssl
2017-10-17 22:14:28 +08:00
5. Download and install Microsoft Visual C++ redistributable for Visual Studio 2017
2017-09-12 19:25:47 +08:00
5.1. Download and install from: https://go.microsoft.com/fwlink/?LinkId=746572
6. Generate SSL Certificate
6.1. run create_certificate.bat when your current working directory is monkey_island
7. Create the monkey_island\cc\binaries folder and put Infection Monkey binaries inside
2015-10-11 19:01:27 +08:00
monkey-linux-64 - monkey binary for linux 64bit
monkey-linux-32 - monkey binary for linux 32bit
monkey-windows-32.exe - monkey binary for windows 32bit
monkey-windows-64.exe - monkey binary for windows 64bit
2017-09-25 01:19:30 +08:00
8. Install npm
8.1. Download and install from: https://www.npmjs.com/get-npm
9. Build Monkey Island frontend
9.1. cd to 'monkey_island\cc\ui'
2017-10-17 22:14:28 +08:00
9.2. run 'npm update'
9.3. run 'npm run dist'
2015-10-11 19:01:27 +08:00
How to run:
2017-10-17 22:14:28 +08:00
1. When your current working directory is monkey_island, run monkey_island\windows\run_server.bat
---------------- On Linux ----------------:
1. Create the following directories:
sudo mkdir /var/monkey_island
sudo chmod 777 /var/monkey_island
2015-12-02 23:44:14 +08:00
mkdir -p /var/monkey_island/bin/mongodb
mkdir -p /var/monkey_island/db
mkdir -p /var/monkey_island/cc/binaries
2015-12-02 23:44:14 +08:00
2. Install the packages from monkey_island/requirements.txt:
sudo python -m pip install -r /var/monkey_island/requirements.txt
2017-10-17 22:14:28 +08:00
If pip is not installed, install the python-pip package. Make sure the server is running Python 2.7 and not Python 3+.
2015-12-02 23:44:14 +08:00
3. put monkey binaries in /var/monkey_island/cc/binaries
monkey-linux-64 - monkey binary for linux 64bit
monkey-linux-32 - monkey binary for linux 32bit
monkey-windows-32.exe - monkey binary for windows 32bit
monkey-windows-64.exe - monkey binary for windows 64bi
2015-12-02 23:44:14 +08:00
4. Download MongoDB and extract it to /var/monkey_island/bin/mongodb
2017-10-18 00:11:42 +08:00
for debian64 - https://downloads.mongodb.org/linux/mongodb-linux-x86_64-debian81-latest.tgz
for ubuntu64 16.10 - https://downloads.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1604-latest.tgz
find more at - https://www.mongodb.org/downloads#production
2015-12-02 23:44:14 +08:00
untar.gz with: tar -zxvf filename.tar.gz -C /var/monkey_island/bin/mongodb
(make sure the content of the mongo folder is in this directory, meaning this path exists:
/var/monkey_island/bin/mongodb/bin)
5. install OpenSSL
sudo apt-get install openssl
2015-12-02 23:44:14 +08:00
2016-06-14 19:40:28 +08:00
6. Generate SSL Certificate, Run create_certificate.sh (located under /linux)
7. Copy monkey island server to /var/monkey_island:
cp -r [monkey_island_source]/cc /var/monkey_island/
8. Install npm
8.1. Download and install from: https://www.npmjs.com/get-npm
9. Build Monkey Island frontend
9.1. cd to 'monkey_island/cc/ui'
2017-10-17 22:14:28 +08:00
9.2. run 'npm update'
9.3. run 'npm run dist'
How to run:
2017-10-17 22:14:28 +08:00
1. run run.sh (located under /linux)