diff --git a/installer/etc/rc.local b/installer/etc/rc.local index caee3dcc..58bf9e54 100755 --- a/installer/etc/rc.local +++ b/installer/etc/rc.local @@ -8,6 +8,7 @@ tee /data/ews/conf/ews.ip << EOF [MAIN] ip = $myEXTIP EOF +echo $myLOCALIP > /data/elk/logstash/mylocal.ip chown tpot:tpot /data/ews/conf/ews.ip if [ -f /var/run/check.lock ]; then rm /var/run/check.lock diff --git a/installer/install.sh b/installer/install.sh index 2a658521..07b5c5bc 100755 --- a/installer/install.sh +++ b/installer/install.sh @@ -6,7 +6,7 @@ # v16.10.0 by mo, DTAG, 2016-05-12 # ######################################################## -# Type of install, SENSOR, INDUSTRIAL or FULL? +# Type of install, TPOT, SENSOR, INDUSTRIAL or FULL? myFLAVOR="TPOT" # Some global vars @@ -150,18 +150,10 @@ tee -a /etc/ssh/ssh_config <:/api delete --filters resource= && alerta --endpoint-url http://:/api send -e IP -r -E Production -s ok -S T-Pot -t \$(cat /data/elk/logstash/mylocal.ip) --status open + # Check if updated images are available and download them 27 1 * * * root for i in \$(cat /data/images.conf); do docker pull dtagdevsec/\$i:latest1610; done @@ -289,7 +284,8 @@ mkdir -p /data/conpot/log \ /data/cowrie/log/tty/ /data/cowrie/downloads/ /data/cowrie/keys/ /data/cowrie/misc/ \ /data/dionaea/log /data/dionaea/bistreams /data/dionaea/binaries /data/dionaea/rtp /data/dionaea/roots/ftp /data/dionaea/roots/tftp /data/dionaea/roots/www /data/dionaea/roots/upnp \ /data/elasticpot/log \ - /data/elk/data /data/elk/log /data/glastopf /data/honeytrap/log/ /data/honeytrap/attacks/ /data/honeytrap/downloads/ \ + /data/elk/data /data/elk/log /data/elk/logstash/conf \ + /data/glastopf /data/honeytrap/log/ /data/honeytrap/attacks/ /data/honeytrap/downloads/ \ /data/emobility/log \ /data/ews/log /data/ews/conf /data/ews/dionaea /data/ews/emobility \ /data/suricata/log /home/tsec/.ssh/ @@ -323,10 +319,18 @@ chown tpot:tpot -R /data chmod 600 /home/tsec/.ssh/authorized_keys chown tsec:tsec /home/tsec/*.sh /home/tsec/.ssh /home/tsec/.ssh/authorized_keys +# Let's pull some updates +fuECHO "### Pulling Updates." +apt-get update -y + # Installing upgrades fuECHO "### Installing Upgrades." apt-get upgrade -y +# Installing alerta-cli +fuECHO "### Installing alerta-cli." +pip install alerta + # Let's clean up apt apt-get autoclean -y apt-get autoremove -y diff --git a/preseed/tpot.seed b/preseed/tpot.seed index 57a0fec1..27e46448 100755 --- a/preseed/tpot.seed +++ b/preseed/tpot.seed @@ -32,7 +32,7 @@ d-i clock-setup/ntp boolean true tasksel tasksel/first multiselect ubuntu-server # Packages -d-i pkgsel/include string apt-transport-https ca-certificates curl dialog dstat ethtool genisoimage git htop iw libpam-google-authenticator lm-sensors ntp openssh-server syslinux pv vim wireless-tools wpasupplicant +d-i pkgsel/include string apt-transport-https ca-certificates curl dialog dstat ethtool genisoimage git htop iw libpam-google-authenticator lm-sensors ntp openssh-server syslinux pv python-pip vim wireless-tools wpasupplicant # Update Policy d-i pkgsel/update-policy select unattended-upgrades