monkey/deployment_scripts
Mike Salvatore ce40392c2b Assume yes for `apt install` commands in deploy_linux.sh 2020-12-08 15:17:07 -05:00
..
README.md Turn agent download into optional, default parameter to true 2020-02-10 13:48:12 +02:00
config Enable deployment_scripts/config to use wget or curl 2020-12-08 12:33:36 -05:00
config.ps1 Merge pull request #624 from guardicore/623/get-version-from-github-api 2020-07-14 11:16:41 +03:00
deploy_linux.sh Assume yes for `apt install` commands in deploy_linux.sh 2020-12-08 15:17:07 -05:00
deploy_windows.ps1 Removed infrastructure related to mimikatz binary: deployment scripts and docs updated 2020-06-05 14:40:58 +03:00

README.md

Deployment guide for a development environemnt

This guide is for you if you wish to develop for Infection Monkey. If you only want to use it, please download the relevant version from our website.

Prerequisites

Before running the script you must have git installed. If you don't have git installed, please follow this guide.

Deploy on Windows

Run the following command in powershell:

Invoke-WebRequest https://raw.githubusercontent.com/guardicore/monkey/develop/deployment_scripts/deploy_windows.ps1 -OutFile deploy_windows.ps1

This will download our deploy script. It's a good idea to read it quickly before executing it!

After downloading that script, execute it in powershell.

The first argument is an empty directory (script can create one). The second argument is which branch you want to clone - by default, the script will check out the develop branch. Some example usages:

  • .\deploy_windows.ps1 (Sets up monkey in current directory under .\infection_monkey)
  • .\deploy_windows.ps1 -monkey_home "C:\test" (Sets up monkey in C:\test)
  • .\deploy_windows.ps1 -branch "master" (Sets up master branch instead of develop in current dir)

You may also pass in an optional agents=$false parameter to disable downloading the latest agent binaries.

Troubleshooting

  • If you run into Execution Policy warnings, you can disable them by prefixing the following snippet: powershell -ExecutionPolicy ByPass -Command "[original command here]"
  • Don't forget to add python to PATH or do so while installing it via this script.

Deploy on Linux

Linux deployment script is meant for Ubuntu 16 and Ubuntu 18 machines.

Your user must have root permissions; however, don't run the script as root!

wget https://raw.githubusercontent.com/guardicore/monkey/develop/deployment_scripts/deploy_linux.sh

This will download our deploy script. It's a good idea to read it quickly before executing it!

Then execute the resulting script with your shell.

After downloading that script, execute it in a shell. The first argument should be an absolute path of an empty directory (the script will create one if doesn't exist, default is ./infection_monkey). The second parameter is the branch you want to clone (develop by default). Some example usages:

  • ./deploy_linux.sh (deploys under ./infection_monkey)
  • ./deploy_linux.sh "/home/test/monkey" (deploys under /home/test/monkey)
  • ./deploy_linux.sh "" "master" (deploys master branch in script directory)
  • ./deploy_linux.sh "/home/user/new" "master" (if directory "new" is not found creates it and clones master branch into it)

You may also pass in an optional third false parameter to disable downloading the latest agent binaries.