monkey/deployment_scripts
VakarisZ 31ff594bbd
Update README.md
2019-07-12 17:26:36 +03:00
..
README.md Update README.md 2019-07-12 17:26:36 +03:00
config Deployment scripts added to the repository 2018-12-10 13:08:59 +02:00
config.ps1 Deployment scripts added to the repository 2018-12-10 13:08:59 +02:00
deploy_linux.sh Don't chmod windows files 2019-05-11 18:33:32 +03:00
deploy_windows.ps1 Refactored for island to have only one requirements file. 2019-02-04 18:42:58 +02:00
run_script.bat Deployment scripts added to the repository 2018-12-10 13:08:59 +02:00

README.md

Files used to deploy development version of infection monkey

Windows

Before running the script you must have git installed.
Cd to scripts directory and use the scripts.
First argument is an empty directory (script can create one) and second is branch you want to clone. Example usages:
./run_script.bat (Sets up monkey in current directory under .\infection_monkey)
./run_script.bat "C:\test" (Sets up monkey in C:\test)
powershell -ExecutionPolicy ByPass -Command ". .\deploy_windows.ps1; Deploy-Windows -monkey_home C:\test" (Same as above)
./run_script.bat "" "master"(Sets up master branch instead of develop in current dir) Don't forget to add python to PATH or do so while installing it via this script.

Linux

You must have root permissions, but don't run the script as root.
Launch deploy_linux.sh from scripts directory.
First argument should be an empty directory (script can create one, default is ./infection_monkey) and second is the branch you want to clone (develop by default). Choose a directory where you have all the relevant permissions, for e.g. /home/your_username 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)