diff --git a/monkey/monkey_island/linux/run.sh b/monkey/monkey_island/linux/run.sh deleted file mode 100755 index a284ffa83..000000000 --- a/monkey/monkey_island/linux/run.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -start_mongo() { - # TODO: Handle starting and cleaning up mongo inside monkey_island.py or - # monkey_island/main.py. - ./bin/mongodb/bin/mongod --dbpath ./bin/mongodb/db & -} - -cd_to_monkey() { - # Pipenv must be run from monkey/monkey/monkey_island, but monkey_island.py - # must be executed from monkey/monkey. - cd .. -} - -start_monkey_island() { - cd_to_monkey - python ./monkey_island.py -} - -start_mongo -start_monkey_island diff --git a/monkey/monkey_island/readme.md b/monkey/monkey_island/readme.md index 0882aecfe..4351dacff 100644 --- a/monkey/monkey_island/readme.md +++ b/monkey/monkey_island/readme.md @@ -28,7 +28,6 @@ - Place portable version of mongodb 1. Download from: 2. Extract contents of bin folder to \monkey\monkey_island\bin\mongodb. - 3. Create monkey_island\db folder. OR - Use already running instance of mongodb @@ -88,12 +87,8 @@ - `pipenv sync --dev` - `cd ..` -1. Set the linux `run.sh` to be executible: - - `chmod u+x monkey_island/linux/run.sh` - 1. Create the following directories in monkey island folder (execute from ./monkey): - `mkdir -p ./monkey_island/bin/mongodb` - - `mkdir -p ./monkey_island/db` - `mkdir -p ./monkey_island/cc/binaries` 1. Put monkey binaries in /monkey_island/cc/binaries (binaries can be found in releases on github). @@ -136,4 +131,4 @@ #### How to run -1. From the `monkey/monkey_island` directory, run `pipenv run ./linux/run.sh` +1. From the `monkey` directory, run `python3.7 ./monkey_island.py`