This commit is contained in:
Marco Ochse 2016-02-08 15:57:27 +01:00
parent 0acc5a4a21
commit 8c94d6d9a5
3 changed files with 13 additions and 8 deletions

View file

@ -4,12 +4,19 @@
# T-Pot # # T-Pot #
# Only start the container found in /etc/init/t-pot # # Only start the container found in /etc/init/t-pot #
# # # #
# v0.01 by mo, DTAG, 2016-02-08 # # v0.02 by mo, DTAG, 2016-02-08 #
######################################################## ########################################################
rm -rf /etc/init/t-pot/*.conf || true # Delete all T-Pot upstart scripts
for i in $(ls /data/upstart/);
do
rm -rf /etc/init/$i || true;
done
# Setup only T-Pot upstart scripts from images.conf
for i in $(cat /data/images.conf); for i in $(cat /data/images.conf);
do do
cp /data/upstart/"$i".conf /etc/init/t-pot/; cp /data/upstart/"$i".conf /etc/init/;
done done
echo Please reboot for the changes to take effect. echo Please reboot for the changes to take effect.

View file

@ -74,4 +74,4 @@ targetip =
[EMOBILITY] [EMOBILITY]
eMobility = false eMobility = false
nodeid = emobility-community-01 nodeid = emobility-community-01
logfile = /data/emobility/emobility.log logfile = /data/eMobility/emobility.log

View file

@ -281,8 +281,7 @@ mkdir -p /data/ews/log /data/ews/conf /data/ews/dionaea /data/ews/emobility \
/data/dionaea/log /data/dionaea/bistreams /data/dionaea/binaries /data/dionaea/rtp /data/dionaea/wwwroot \ /data/dionaea/log /data/dionaea/bistreams /data/dionaea/binaries /data/dionaea/rtp /data/dionaea/wwwroot \
/data/elk/data /data/elk/log /data/glastopf /data/honeytrap/log/ /data/honeytrap/attacks/ /data/honeytrap/downloads/ \ /data/elk/data /data/elk/log /data/glastopf /data/honeytrap/log/ /data/honeytrap/attacks/ /data/honeytrap/downloads/ \
/data/suricata/log /home/tsec/.ssh/ \ /data/suricata/log /home/tsec/.ssh/ \
/data/emobility/log \ /data/emobility/log
/etc/init/t-pot
# Let's take care of some files and permissions before copying # Let's take care of some files and permissions before copying
chmod 500 /root/tpot/bin/* chmod 500 /root/tpot/bin/*
@ -292,7 +291,6 @@ chmod 755 /root/tpot/etc/rc.local
chmod 700 /root/tpot/home/* chmod 700 /root/tpot/home/*
chown tsec:tsec /root/tpot/home/* chown tsec:tsec /root/tpot/home/*
chmod 644 /root/tpot/data/upstart/* chmod 644 /root/tpot/data/upstart/*
chmod 644 /etc/init/t-pot
# Let's copy some files # Let's copy some files
cp -R /root/tpot/bin/* /usr/bin/ cp -R /root/tpot/bin/* /usr/bin/
@ -302,7 +300,7 @@ cp -R /root/tpot/home/* /home/tsec/
cp /root/tpot/keys/authorized_keys /home/tsec/.ssh/authorized_keys cp /root/tpot/keys/authorized_keys /home/tsec/.ssh/authorized_keys
for i in $(cat /data/images.conf); for i in $(cat /data/images.conf);
do do
cp /data/upstart/$i.conf /etc/init/t-pot/; cp /data/upstart/$i.conf /etc/init/;
done done
# Let's take care of some files and permissions # Let's take care of some files and permissions