2019-12-17 00:41:31 +08:00
|
|
|
# Monkey maker
|
|
|
|
|
|
|
|
## About
|
|
|
|
|
|
|
|
Monkey maker is an environment on AWS that
|
|
|
|
is designed for monkey binary building.
|
|
|
|
This environment is deployed using terraform scripts
|
|
|
|
located in this directory.
|
|
|
|
|
|
|
|
## Setup
|
|
|
|
|
|
|
|
To setup you need to put `accessKeys` file into `./aws_keys` directory.
|
|
|
|
|
|
|
|
Contents of `accessKeys` file should be as follows:
|
|
|
|
|
2020-03-18 17:49:33 +08:00
|
|
|
```ini
|
2019-12-17 00:41:31 +08:00
|
|
|
[default]
|
|
|
|
aws_access_key_id = <...>
|
|
|
|
aws_secret_access_key = <...>
|
|
|
|
```
|
|
|
|
Also review `./terraform/config.tf` file.
|
|
|
|
|
|
|
|
Launch the environment by going into `terraform` folder and running
|
2020-03-18 17:49:33 +08:00
|
|
|
```
|
2019-12-17 00:41:31 +08:00
|
|
|
terraform init
|
|
|
|
terraform apply
|
|
|
|
```
|
|
|
|
|
2020-03-18 17:49:33 +08:00
|
|
|
## Usage
|
2020-01-20 18:32:27 +08:00
|
|
|
|
|
|
|
To login to windows use Administrator: %HwuzI!Uzsyfa=cB*XaQ6xxHqopfj)h) credentials
|
|
|
|
|
|
|
|
You'll find docker files in `/home/ubuntu/docker_envs/linux/...`
|
|
|
|
|
|
|
|
To build docker image for 32 bit linux:
|
|
|
|
```
|
|
|
|
cd /home/ubuntu/docker_envs/linux/py3-32
|
|
|
|
sudo docker build -t builder32 .
|
|
|
|
```
|
|
|
|
|
|
|
|
To build docker image for 64 bit linux:
|
|
|
|
```
|
|
|
|
cd /home/ubuntu/docker_envs/linux/py3-64
|
|
|
|
sudo docker build -t builder64 .
|
|
|
|
```
|
|
|
|
|
|
|
|
To build 32 bit monkey binary:
|
|
|
|
```
|
|
|
|
cd /home/ubuntu/monkey_folder/monkey
|
|
|
|
sudo docker run -v "$(pwd):/src" builder32 -c "export SRCDIR=/src/infection_monkey && /entrypoint.sh"
|
|
|
|
```
|
|
|
|
|
|
|
|
To build 64 bit monkey binary:
|
|
|
|
```
|
|
|
|
cd /home/ubuntu/monkey_folder/monkey
|
|
|
|
sudo docker run -v "$(pwd):/src" builder64 -c "export SRCDIR=/src/infection_monkey && /entrypoint.sh"
|
|
|
|
```
|