mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-20 06:02:24 +00:00
prepare for new ewsposter
This commit is contained in:
parent
6b37578d8d
commit
b28cc2edd0
4 changed files with 23 additions and 30 deletions
|
@ -2,6 +2,7 @@
|
||||||
# Let's add the first local ip to the /etc/issue and external ip to ews.ip file
|
# Let's add the first local ip to the /etc/issue and external ip to ews.ip file
|
||||||
# If the external IP cannot be detected, the internal IP will be inherited.
|
# If the external IP cannot be detected, the internal IP will be inherited.
|
||||||
source /etc/environment
|
source /etc/environment
|
||||||
|
myUUID=$(lsblk -o MOUNTPOINT,UUID | grep "/" | awk '{ print $2 }')
|
||||||
myLOCALIP=$(hostname -I | awk '{ print $1 }')
|
myLOCALIP=$(hostname -I | awk '{ print $1 }')
|
||||||
myEXTIP=$(/opt/tpot/bin/myip.sh)
|
myEXTIP=$(/opt/tpot/bin/myip.sh)
|
||||||
if [ "$myEXTIP" = "" ];
|
if [ "$myEXTIP" = "" ];
|
||||||
|
@ -26,6 +27,7 @@ tee /data/ews/conf/ews.ip << EOF
|
||||||
ip = $myEXTIP
|
ip = $myEXTIP
|
||||||
EOF
|
EOF
|
||||||
tee /opt/tpot/etc/compose/elk_environment << EOF
|
tee /opt/tpot/etc/compose/elk_environment << EOF
|
||||||
|
HONEY_UUID=$myUUID
|
||||||
MY_EXTIP=$myEXTIP
|
MY_EXTIP=$myEXTIP
|
||||||
MY_INTIP=$myLOCALIP
|
MY_INTIP=$myLOCALIP
|
||||||
MY_HOSTNAME=$HOSTNAME
|
MY_HOSTNAME=$HOSTNAME
|
||||||
|
|
|
@ -23,9 +23,9 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
|
||||||
pip3 install --no-cache-dir configparser hpfeeds3 pyOpenSSL xmljson && \
|
pip3 install --no-cache-dir configparser hpfeeds3 pyOpenSSL xmljson && \
|
||||||
#
|
#
|
||||||
# Setup ewsposter
|
# Setup ewsposter
|
||||||
git clone https://github.com/telekom-security/ewsposter /opt/ewsposter && \
|
git clone https://github.com/telekom-security/ewsposter -b develop /opt/ewsposter && \
|
||||||
cd /opt/ewsposter && \
|
cd /opt/ewsposter && \
|
||||||
git checkout f9c0623d44a837f666ec39659665020c7460dec8 && \
|
# git checkout f9c0623d44a837f666ec39659665020c7460dec8 && \
|
||||||
mkdir -p /opt/ewsposter/spool /opt/ewsposter/log && \
|
mkdir -p /opt/ewsposter/spool /opt/ewsposter/log && \
|
||||||
#
|
#
|
||||||
# Setup user and groups
|
# Setup user and groups
|
||||||
|
|
44
docker/ews/dist/ews.cfg
vendored
44
docker/ews/dist/ews.cfg
vendored
|
@ -6,8 +6,9 @@ del_malware_after_send = false
|
||||||
send_malware = false
|
send_malware = false
|
||||||
sendlimit = 500
|
sendlimit = 500
|
||||||
contact = your_email_address
|
contact = your_email_address
|
||||||
proxy =
|
proxy = None
|
||||||
ip =
|
ip_int = None
|
||||||
|
ip_ext = None
|
||||||
|
|
||||||
[EWS]
|
[EWS]
|
||||||
ews = true
|
ews = true
|
||||||
|
@ -39,24 +40,6 @@ nodeid = glastopfv3-community-01
|
||||||
sqlitedb = /data/glastopf/db/glastopf.db
|
sqlitedb = /data/glastopf/db/glastopf.db
|
||||||
malwaredir = /data/glastopf/data/files/
|
malwaredir = /data/glastopf/data/files/
|
||||||
|
|
||||||
[GLASTOPFV2]
|
|
||||||
glastopfv2 = false
|
|
||||||
nodeid =
|
|
||||||
mysqlhost =
|
|
||||||
mysqldb =
|
|
||||||
mysqluser =
|
|
||||||
mysqlpw =
|
|
||||||
malwaredir =
|
|
||||||
|
|
||||||
[KIPPO]
|
|
||||||
kippo = false
|
|
||||||
nodeid =
|
|
||||||
mysqlhost =
|
|
||||||
mysqldb =
|
|
||||||
mysqluser =
|
|
||||||
mysqlpw =
|
|
||||||
malwaredir =
|
|
||||||
|
|
||||||
[COWRIE]
|
[COWRIE]
|
||||||
cowrie = true
|
cowrie = true
|
||||||
nodeid = cowrie-community-01
|
nodeid = cowrie-community-01
|
||||||
|
@ -75,12 +58,6 @@ newversion = true
|
||||||
payloaddir = /data/honeytrap/attacks/
|
payloaddir = /data/honeytrap/attacks/
|
||||||
attackerfile = /data/honeytrap/log/attacker.log
|
attackerfile = /data/honeytrap/log/attacker.log
|
||||||
|
|
||||||
[RDPDETECT]
|
|
||||||
rdpdetect = false
|
|
||||||
nodeid =
|
|
||||||
iptableslog =
|
|
||||||
targetip =
|
|
||||||
|
|
||||||
[EMOBILITY]
|
[EMOBILITY]
|
||||||
eMobility = false
|
eMobility = false
|
||||||
nodeid = emobility-community-01
|
nodeid = emobility-community-01
|
||||||
|
@ -135,3 +112,18 @@ logfile = /data/tanner/log/tanner_report.json
|
||||||
glutton = true
|
glutton = true
|
||||||
nodeid = glutton-community-01
|
nodeid = glutton-community-01
|
||||||
logfile = /data/glutton/log/glutton.log
|
logfile = /data/glutton/log/glutton.log
|
||||||
|
|
||||||
|
[HONEYSAP]
|
||||||
|
honeysap = true
|
||||||
|
nodeid = honeysap-community-01
|
||||||
|
logfile = /data/honeysap/log/honeysap-external.log
|
||||||
|
|
||||||
|
[ADBHONEY]
|
||||||
|
adbhoney = true
|
||||||
|
nodeid = adbhoney-community-01
|
||||||
|
logfile = /data/adbhoney/log/adbhoney.json
|
||||||
|
|
||||||
|
[FATT]
|
||||||
|
fatt = true
|
||||||
|
nodeid = fatt-community-01
|
||||||
|
logfile = /data/fatt/log/fatt.log
|
||||||
|
|
|
@ -26,5 +26,4 @@ services:
|
||||||
image: "ghcr.io/telekom-security/ewsposter:2006"
|
image: "ghcr.io/telekom-security/ewsposter:2006"
|
||||||
volumes:
|
volumes:
|
||||||
- /data:/data
|
- /data:/data
|
||||||
- /data/ews/conf/ews.ip:/opt/ewsposter/ews.ip
|
# - /data/ews/conf/ews.ip:/opt/ewsposter/ews.ip
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue