From 6f992604b8897247d8b29a121cfdef422288ef7b Mon Sep 17 00:00:00 2001 From: Marco Ochse Date: Tue, 25 Oct 2016 18:35:39 +0200 Subject: [PATCH] experimental: include installation type into installer... --- installer/install.sh | 38 ++++++++++++++++++++++++++++++++++++-- makeiso.sh | 4 ++-- 2 files changed, 38 insertions(+), 4 deletions(-) diff --git a/installer/install.sh b/installer/install.sh index 38a6f1dd..d32b7f5b 100755 --- a/installer/install.sh +++ b/installer/install.sh @@ -3,11 +3,11 @@ # T-Pot post install script # # Ubuntu server 16.04.0, x64 # # # -# v16.10.0 by mo, DTAG, 2016-10-23 # +# v16.10.0 by mo, DTAG, 2016-10-25 # ######################################################## # Type of install, TPOT, SENSOR, INDUSTRIAL or FULL? -myFLAVOR="TPOT" +#myFLAVOR="TPOT" # Some global vars myPROXYFILEPATH="/root/tpot/etc/proxy" @@ -52,6 +52,40 @@ rm /etc/nginx/sites-enabled/default fuECHO "### Waiting a few seconds to avoid interference with service messages." sleep 5 +# Let's ask user for install type +# Install types are TPOT, HP, INDUSTRIAL, ALL +while [ 1 != 2 ] + do + fuECHO "### Please choose your install type." + fuECHO "###" + fuECHO "### [T] - T-Pot (Standard w/o Industrial)" + fuECHO "### [H] - Honeypots only (w/o Industrial)" + fuECHO "### [I] - Industrial (ConPot, eMobility, ELK, Suricata) (8GB RAM recommended)" + fuECHO "### [E] - Everything (8GB RAM recommended)" + fuECHO "###" + read -p "Install Type: " myTYPE + case "$myTYPE" in + [t,T]) + myFLAVOR="TPOT" + break + ;; + [h,H]) + myFLAVOR="HP" + break + ;; + [i,I]) + myFLAVOR="INDUSTRIAL" + break + ;; + [e,E]) + myFLAVOR="ALL" + break + ;; + esac +done +fuECHO "### You chose: "$myFLAVOR +echo + # Let's ask user for a web user and password myOK="n" myUSER="tsec" diff --git a/makeiso.sh b/makeiso.sh index d5ba8122..9aa75a80 100755 --- a/makeiso.sh +++ b/makeiso.sh @@ -90,8 +90,8 @@ if [ "$mySTART" = "1" ]; fi # Let's ask for the type of installation? -myFLAVOR=$(dialog --no-cancel --backtitle "$myBACKTITLE" --title "[ Installation type ... ]" --radiolist "" 11 76 4 "TPOT" "Standard (w/o INDUSTRIAL)" on "HP" "Honeypots only (w/o INDUSTRIAL)" off "INDUSTRIAL" "ConPot, eMobility, ELK, Suricata (8GB RAM recommended)" off "ALL" "Everything (8GB RAM required)" off 3>&1 1>&2 2>&3 3>&-) -sed -i 's#^myFLAVOR=.*#myFLAVOR="'$myFLAVOR'"#' $myINSTALLERPATH +#myFLAVOR=$(dialog --no-cancel --backtitle "$myBACKTITLE" --title "[ Installation type ... ]" --radiolist "" 11 76 4 "TPOT" "Standard (w/o INDUSTRIAL)" on "HP" "Honeypots only (w/o INDUSTRIAL)" off "INDUSTRIAL" "ConPot, eMobility, ELK, Suricata (8GB RAM recommended)" off "ALL" "Everything (8GB RAM required)" off 3>&1 1>&2 2>&3 3>&-) +#sed -i 's#^myFLAVOR=.*#myFLAVOR="'$myFLAVOR'"#' $myINSTALLERPATH # Let's ask the user for a proxy ... while true;