mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 12:32:12 +00:00
Prepare install.sh for new editions. Needs testing.
This commit is contained in:
parent
c2baf27761
commit
0d40ec44cf
2 changed files with 24 additions and 19 deletions
|
@ -97,13 +97,14 @@ EOF
|
||||||
# Let's ask user for install flavor
|
# Let's ask user for install flavor
|
||||||
# Install types are TPOT, HP, INDUSTRIAL, ALL
|
# Install types are TPOT, HP, INDUSTRIAL, ALL
|
||||||
tput cnorm
|
tput cnorm
|
||||||
myFLAVOR=$(dialog --no-cancel --backtitle "$myBACKTITLE" --title "[ Choose your edition ]" --no-tags --menu \
|
myFLAVOR=$(dialog --no-cancel --backtitle "$myBACKTITLE" --title "[ Choose Your T-Pot NG Edition ]" --menu \
|
||||||
"\nRequired: 4GB RAM, 64GB disk\nRecommended: 8GB RAM, 128GB SSD" 14 60 5 \
|
"\nRequired: 6GB RAM, 128GB SSD\nRecommended: 8GB RAM, 256GB SSD" 15 70 7 \
|
||||||
"TPOT" "Standard Honeypots, Suricata & ELK" \
|
"STANDARD" "Honeypots, ELK, NSM & Tools" \
|
||||||
"HP" "Honeypots only, w/o Suricata & ELK" \
|
"SENSOR" "Just Honeypots, EWS Poster & NSM" \
|
||||||
"COLLECTOR" "Heralding, Honeytrap & ELK" \
|
"INDUSTRIAL" "Conpot, RDPY, Vnclowpot, ELK, NSM & Tools" \
|
||||||
"INDUSTRIAL" "Conpot, Suricata & ELK" \
|
"COLLECTOR" "Heralding, ELK, NSM & Tools" \
|
||||||
"EVERYTHING" "Everything" 3>&1 1>&2 2>&3 3>&-)
|
"EXPERIMENTAL" "Experimental (Glutton instead of Honeytrap)" \
|
||||||
|
"LEGACY" "Standard Edition from previous release" 3>&1 1>&2 2>&3 3>&-)
|
||||||
|
|
||||||
# Let's ask for a secure tsec password
|
# Let's ask for a secure tsec password
|
||||||
myUSER="tsec"
|
myUSER="tsec"
|
||||||
|
@ -356,25 +357,29 @@ EOF
|
||||||
|
|
||||||
# Let's make sure only myFLAVOR images will be downloaded and started
|
# Let's make sure only myFLAVOR images will be downloaded and started
|
||||||
case $myFLAVOR in
|
case $myFLAVOR in
|
||||||
COLLECTOR)
|
STANDARD)
|
||||||
echo "### Preparing COLLECTOR flavor installation."
|
echo "### Preparing STANDARD flavor installation."
|
||||||
cp /opt/tpot/etc/compose/collect.yml $myTPOTCOMPOSE 2>&1>/dev/null
|
cp /opt/tpot/etc/compose/standard.yml $myTPOTCOMPOSE 2>&1>/dev/null
|
||||||
;;
|
;;
|
||||||
HP)
|
SENSOR)
|
||||||
echo "### Preparing HONEYPOT flavor installation."
|
echo "### Preparing SENSOR flavor installation."
|
||||||
cp /opt/tpot/etc/compose/hp.yml $myTPOTCOMPOSE 2>&1>/dev/null
|
cp /opt/tpot/etc/compose/sensor.yml $myTPOTCOMPOSE 2>&1>/dev/null
|
||||||
;;
|
;;
|
||||||
INDUSTRIAL)
|
INDUSTRIAL)
|
||||||
echo "### Preparing INDUSTRIAL flavor installation."
|
echo "### Preparing INDUSTRIAL flavor installation."
|
||||||
cp /opt/tpot/etc/compose/industrial.yml $myTPOTCOMPOSE 2>&1>/dev/null
|
cp /opt/tpot/etc/compose/industrial.yml $myTPOTCOMPOSE 2>&1>/dev/null
|
||||||
;;
|
;;
|
||||||
TPOT)
|
COLLECTOR)
|
||||||
echo "### Preparing TPOT flavor installation."
|
echo "### Preparing COLLECTOR flavor installation."
|
||||||
cp /opt/tpot/etc/compose/tpot.yml $myTPOTCOMPOSE 2>&1>/dev/null
|
cp /opt/tpot/etc/compose/collector.yml $myTPOTCOMPOSE 2>&1>/dev/null
|
||||||
;;
|
;;
|
||||||
EVERYTHING)
|
EXPERIMENTAL)
|
||||||
echo "### Preparing EVERYTHING flavor installation."
|
echo "### Preparing EXPERIMENTAL flavor installation."
|
||||||
cp /opt/tpot/etc/compose/all.yml $myTPOTCOMPOSE 2>&1>/dev/null
|
cp /opt/tpot/etc/compose/experimental.yml $myTPOTCOMPOSE 2>&1>/dev/null
|
||||||
|
;;
|
||||||
|
LEGACY)
|
||||||
|
echo "### Preparing LEGACY flavor installation."
|
||||||
|
cp /opt/tpot/etc/compose/legacy.yml $myTPOTCOMPOSE 2>&1>/dev/null
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue