mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-19 21:52:27 +00:00
update mailoney for py <= 3.11
- working commands and mail log - hostname obfuscation - update server string
This commit is contained in:
parent
13f97a6c76
commit
486c97335f
9 changed files with 22 additions and 44 deletions
|
@ -327,16 +327,12 @@ services:
|
||||||
# Mailoney service
|
# Mailoney service
|
||||||
mailoney:
|
mailoney:
|
||||||
container_name: mailoney
|
container_name: mailoney
|
||||||
|
stdin_open: true
|
||||||
|
tty: true
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
tpotinit:
|
tpotinit:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
environment:
|
|
||||||
- HPFEEDS_SERVER=
|
|
||||||
- HPFEEDS_IDENT=user
|
|
||||||
- HPFEEDS_SECRET=pass
|
|
||||||
- HPFEEDS_PORT=20000
|
|
||||||
- HPFEEDS_CHANNELPREFIX=prefix
|
|
||||||
networks:
|
networks:
|
||||||
- mailoney_local
|
- mailoney_local
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -393,16 +393,12 @@ services:
|
||||||
# Mailoney service
|
# Mailoney service
|
||||||
mailoney:
|
mailoney:
|
||||||
container_name: mailoney
|
container_name: mailoney
|
||||||
|
stdin_open: true
|
||||||
|
tty: true
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
logstash:
|
logstash:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
environment:
|
|
||||||
- HPFEEDS_SERVER=
|
|
||||||
- HPFEEDS_IDENT=user
|
|
||||||
- HPFEEDS_SECRET=pass
|
|
||||||
- HPFEEDS_PORT=20000
|
|
||||||
- HPFEEDS_CHANNELPREFIX=prefix
|
|
||||||
networks:
|
networks:
|
||||||
- mailoney_local
|
- mailoney_local
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -433,16 +433,12 @@ services:
|
||||||
# Mailoney service
|
# Mailoney service
|
||||||
mailoney:
|
mailoney:
|
||||||
container_name: mailoney
|
container_name: mailoney
|
||||||
|
stdin_open: true
|
||||||
|
tty: true
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
tpotinit:
|
tpotinit:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
environment:
|
|
||||||
- HPFEEDS_SERVER=
|
|
||||||
- HPFEEDS_IDENT=user
|
|
||||||
- HPFEEDS_SECRET=pass
|
|
||||||
- HPFEEDS_PORT=20000
|
|
||||||
- HPFEEDS_CHANNELPREFIX=prefix
|
|
||||||
networks:
|
networks:
|
||||||
- mailoney_local
|
- mailoney_local
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -435,16 +435,12 @@ services:
|
||||||
# Mailoney service
|
# Mailoney service
|
||||||
mailoney:
|
mailoney:
|
||||||
container_name: mailoney
|
container_name: mailoney
|
||||||
|
stdin_open: true
|
||||||
|
tty: true
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
tpotinit:
|
tpotinit:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
environment:
|
|
||||||
- HPFEEDS_SERVER=
|
|
||||||
- HPFEEDS_IDENT=user
|
|
||||||
- HPFEEDS_SECRET=pass
|
|
||||||
- HPFEEDS_PORT=20000
|
|
||||||
- HPFEEDS_CHANNELPREFIX=prefix
|
|
||||||
networks:
|
networks:
|
||||||
- mailoney_local
|
- mailoney_local
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -666,16 +666,12 @@ services:
|
||||||
# Mailoney service
|
# Mailoney service
|
||||||
mailoney:
|
mailoney:
|
||||||
container_name: mailoney
|
container_name: mailoney
|
||||||
|
stdin_open: true
|
||||||
|
tty: true
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
tpotinit:
|
tpotinit:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
environment:
|
|
||||||
- HPFEEDS_SERVER=
|
|
||||||
- HPFEEDS_IDENT=user
|
|
||||||
- HPFEEDS_SECRET=pass
|
|
||||||
- HPFEEDS_PORT=20000
|
|
||||||
- HPFEEDS_CHANNELPREFIX=prefix
|
|
||||||
networks:
|
networks:
|
||||||
- mailoney_local
|
- mailoney_local
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -45,8 +45,9 @@ RUN apk --no-cache -U add \
|
||||||
mkdir -p /opt \
|
mkdir -p /opt \
|
||||||
/var/log/honeypots && \
|
/var/log/honeypots && \
|
||||||
cd /opt/ && \
|
cd /opt/ && \
|
||||||
git clone https://github.com/t3chn0m4g3/honeypots && \
|
git clone https://github.com/qeeqbox/honeypots && \
|
||||||
cd honeypots && \
|
cd honeypots && \
|
||||||
|
git checkout 238c6732d28b36ab88f2008361bafc8aef054755 && \
|
||||||
pip3 install --break-system-packages --no-cache-dir . && \
|
pip3 install --break-system-packages --no-cache-dir . && \
|
||||||
setcap cap_net_bind_service=+ep $(readlink -f $(type -P python3)) && \
|
setcap cap_net_bind_service=+ep $(readlink -f $(type -P python3)) && \
|
||||||
#
|
#
|
||||||
|
|
|
@ -26,10 +26,10 @@ RUN apt-get update -y && \
|
||||||
# Install log4pot from GitHub and setup
|
# Install log4pot from GitHub and setup
|
||||||
mkdir -p /opt /var/log/log4pot && \
|
mkdir -p /opt /var/log/log4pot && \
|
||||||
cd /opt/ && \
|
cd /opt/ && \
|
||||||
#git clone https://github.com/thomaspatzke/Log4Pot && \
|
git clone https://github.com/thomaspatzke/Log4Pot && \
|
||||||
git clone https://github.com/t3chn0m4g3/Log4Pot && \
|
#git clone https://github.com/t3chn0m4g3/Log4Pot && \
|
||||||
cd Log4Pot && \
|
cd Log4Pot && \
|
||||||
git checkout 31115d1ed0e78560672c597cb1e09d0f7ee5ab19 && \
|
git checkout 5002b1fe0f82359ef32dbc3a899e8a701dc3256e && \
|
||||||
sed -i 's#"type": logtype,#"reason": logtype,#g' log4pot-server.py && \
|
sed -i 's#"type": logtype,#"reason": logtype,#g' log4pot-server.py && \
|
||||||
# rm poetry.lock && \
|
# rm poetry.lock && \
|
||||||
poetry --no-cache install && \
|
poetry --no-cache install && \
|
||||||
|
|
|
@ -1,16 +1,17 @@
|
||||||
|
# For Mailoney to work we need to keep Alpine 3.19 for now
|
||||||
FROM alpine:3.19
|
FROM alpine:3.19
|
||||||
#
|
#
|
||||||
# Install packages
|
# Install packages
|
||||||
RUN apk --no-cache -U add \
|
RUN apk --no-cache -U upgrade && \
|
||||||
|
apk --no-cache -U add \
|
||||||
git \
|
git \
|
||||||
libcap \
|
libcap \
|
||||||
py3-pip \
|
|
||||||
python3 && \
|
python3 && \
|
||||||
#
|
#
|
||||||
# Install mailoney from git
|
# Install mailoney from git
|
||||||
git clone https://github.com/t3chn0m4g3/mailoney /opt/mailoney && \
|
git clone https://github.com/t3chn0m4g3/mailoney /opt/mailoney && \
|
||||||
cd /opt/mailoney && \
|
cd /opt/mailoney && \
|
||||||
pip3 install --break-system-packages -r requirements.txt && \
|
git checkout 06e54bd410e0044d26d8462321f1b2811318db0b && \
|
||||||
#
|
#
|
||||||
# Setup user, groups and configs
|
# Setup user, groups and configs
|
||||||
addgroup -g 2000 mailoney && \
|
addgroup -g 2000 mailoney && \
|
||||||
|
@ -26,4 +27,4 @@ RUN apk --no-cache -U add \
|
||||||
STOPSIGNAL SIGINT
|
STOPSIGNAL SIGINT
|
||||||
USER mailoney:mailoney
|
USER mailoney:mailoney
|
||||||
WORKDIR /opt/mailoney/
|
WORKDIR /opt/mailoney/
|
||||||
CMD ["/usr/bin/python","mailoney.py","-i","0.0.0.0","-p","25","-s","mailrelay.local","-t","schizo_open_relay"]
|
CMD ["/usr/bin/python","mailoney.py","-i","0.0.0.0","-p","25","-t","schizo_open_relay"]
|
|
@ -7,13 +7,9 @@ services:
|
||||||
mailoney:
|
mailoney:
|
||||||
build: .
|
build: .
|
||||||
container_name: mailoney
|
container_name: mailoney
|
||||||
|
stdin_open: true
|
||||||
|
tty: true
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
|
||||||
- HPFEEDS_SERVER=
|
|
||||||
- HPFEEDS_IDENT=user
|
|
||||||
- HPFEEDS_SECRET=pass
|
|
||||||
- HPFEEDS_PORT=20000
|
|
||||||
- HPFEEDS_CHANNELPREFIX=prefix
|
|
||||||
# cpu_count: 1
|
# cpu_count: 1
|
||||||
# cpus: 0.25
|
# cpus: 0.25
|
||||||
networks:
|
networks:
|
||||||
|
|
Loading…
Reference in a new issue