Linux deployment fixes

This commit is contained in:
VakarisZ 2019-10-17 18:06:01 +03:00
parent eaee0451c5
commit 05af080f98
3 changed files with 5 additions and 2 deletions

View File

@ -70,6 +70,7 @@ fi
if [[ ${python_cmd} == "" ]]; then if [[ ${python_cmd} == "" ]]; then
log_message "Python 3.7 command not found. Installing python 3.7." log_message "Python 3.7 command not found. Installing python 3.7."
sudo add-apt-repository ppa:deadsnakes/ppa sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.7 sudo apt install python3.7
log_message "Python 3.7 is now available with command 'python3.7'." log_message "Python 3.7 is now available with command 'python3.7'."
python_cmd="python3.7" python_cmd="python3.7"
@ -82,6 +83,9 @@ log_message "Installing pip"
sudo apt install python3-pip sudo apt install python3-pip
${python_cmd} -m pip install pip ${python_cmd} -m pip install pip
log_message "Install python3.7-dev"
sudo apt-get install python3.7-dev
log_message "Installing island requirements" log_message "Installing island requirements"
requirements="$ISLAND_PATH/requirements.txt" requirements="$ISLAND_PATH/requirements.txt"
${python_cmd} -m pip install --user --upgrade -r ${requirements} || handle_error ${python_cmd} -m pip install --user --upgrade -r ${requirements} || handle_error

View File

@ -5,7 +5,6 @@ import time
import paramiko import paramiko
import infection_monkey.monkeyfs as monkeyfs import infection_monkey.monkeyfs as monkeyfs
from common.utils.exploit_enum import ExploitType
from infection_monkey.exploit import HostExploiter from infection_monkey.exploit import HostExploiter
from infection_monkey.exploit.tools.helpers import get_target_monkey, get_monkey_depth, build_monkey_commandline from infection_monkey.exploit.tools.helpers import get_target_monkey, get_monkey_depth, build_monkey_commandline
from infection_monkey.exploit.tools.helpers import get_interface_to_target from infection_monkey.exploit.tools.helpers import get_interface_to_target

View File

@ -13,4 +13,4 @@ if [[ `python3.7 --version 2>&1` == *"Python 3.7"* ]]; then
fi fi
./bin/mongodb/bin/mongod --dbpath ./bin/mongodb/db ./bin/mongodb/bin/mongod --dbpath ./bin/mongodb/db
${python_cmd} monkey_island.py ${python_cmd} monkey_island.py