mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 04:52:11 +00:00
experimental: include installation type into installer...
This commit is contained in:
parent
4cbe7842a8
commit
6f992604b8
2 changed files with 38 additions and 4 deletions
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue