update mailoney for py <= 3.11

- working commands and mail log
- hostname obfuscation
- update server string
This commit is contained in:
t3chn0m4g3 2024-12-03 19:26:18 +01:00
parent 13f97a6c76
commit 486c97335f
9 changed files with 22 additions and 44 deletions

View file

@ -327,16 +327,12 @@ services:
# Mailoney service
mailoney:
container_name: mailoney
stdin_open: true
tty: true
restart: always
depends_on:
tpotinit:
condition: service_healthy
environment:
- HPFEEDS_SERVER=
- HPFEEDS_IDENT=user
- HPFEEDS_SECRET=pass
- HPFEEDS_PORT=20000
- HPFEEDS_CHANNELPREFIX=prefix
networks:
- mailoney_local
ports:

View file

@ -393,16 +393,12 @@ services:
# Mailoney service
mailoney:
container_name: mailoney
stdin_open: true
tty: true
restart: always
depends_on:
logstash:
condition: service_healthy
environment:
- HPFEEDS_SERVER=
- HPFEEDS_IDENT=user
- HPFEEDS_SECRET=pass
- HPFEEDS_PORT=20000
- HPFEEDS_CHANNELPREFIX=prefix
networks:
- mailoney_local
ports:

View file

@ -433,16 +433,12 @@ services:
# Mailoney service
mailoney:
container_name: mailoney
stdin_open: true
tty: true
restart: always
depends_on:
tpotinit:
condition: service_healthy
environment:
- HPFEEDS_SERVER=
- HPFEEDS_IDENT=user
- HPFEEDS_SECRET=pass
- HPFEEDS_PORT=20000
- HPFEEDS_CHANNELPREFIX=prefix
networks:
- mailoney_local
ports:

View file

@ -435,16 +435,12 @@ services:
# Mailoney service
mailoney:
container_name: mailoney
stdin_open: true
tty: true
restart: always
depends_on:
tpotinit:
condition: service_healthy
environment:
- HPFEEDS_SERVER=
- HPFEEDS_IDENT=user
- HPFEEDS_SECRET=pass
- HPFEEDS_PORT=20000
- HPFEEDS_CHANNELPREFIX=prefix
networks:
- mailoney_local
ports:

View file

@ -666,16 +666,12 @@ services:
# Mailoney service
mailoney:
container_name: mailoney
stdin_open: true
tty: true
restart: always
depends_on:
tpotinit:
condition: service_healthy
environment:
- HPFEEDS_SERVER=
- HPFEEDS_IDENT=user
- HPFEEDS_SECRET=pass
- HPFEEDS_PORT=20000
- HPFEEDS_CHANNELPREFIX=prefix
networks:
- mailoney_local
ports:

View file

@ -45,8 +45,9 @@ RUN apk --no-cache -U add \
mkdir -p /opt \
/var/log/honeypots && \
cd /opt/ && \
git clone https://github.com/t3chn0m4g3/honeypots && \
git clone https://github.com/qeeqbox/honeypots && \
cd honeypots && \
git checkout 238c6732d28b36ab88f2008361bafc8aef054755 && \
pip3 install --break-system-packages --no-cache-dir . && \
setcap cap_net_bind_service=+ep $(readlink -f $(type -P python3)) && \
#

View file

@ -26,10 +26,10 @@ RUN apt-get update -y && \
# Install log4pot from GitHub and setup
mkdir -p /opt /var/log/log4pot && \
cd /opt/ && \
#git clone https://github.com/thomaspatzke/Log4Pot && \
git clone https://github.com/t3chn0m4g3/Log4Pot && \
git clone https://github.com/thomaspatzke/Log4Pot && \
#git clone https://github.com/t3chn0m4g3/Log4Pot && \
cd Log4Pot && \
git checkout 31115d1ed0e78560672c597cb1e09d0f7ee5ab19 && \
git checkout 5002b1fe0f82359ef32dbc3a899e8a701dc3256e && \
sed -i 's#"type": logtype,#"reason": logtype,#g' log4pot-server.py && \
# rm poetry.lock && \
poetry --no-cache install && \

View file

@ -1,16 +1,17 @@
# For Mailoney to work we need to keep Alpine 3.19 for now
FROM alpine:3.19
#
# Install packages
RUN apk --no-cache -U add \
RUN apk --no-cache -U upgrade && \
apk --no-cache -U add \
git \
libcap \
py3-pip \
python3 && \
#
# Install mailoney from git
git clone https://github.com/t3chn0m4g3/mailoney /opt/mailoney && \
cd /opt/mailoney && \
pip3 install --break-system-packages -r requirements.txt && \
git checkout 06e54bd410e0044d26d8462321f1b2811318db0b && \
#
# Setup user, groups and configs
addgroup -g 2000 mailoney && \
@ -26,4 +27,4 @@ RUN apk --no-cache -U add \
STOPSIGNAL SIGINT
USER mailoney: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"]

View file

@ -7,13 +7,9 @@ services:
mailoney:
build: .
container_name: mailoney
stdin_open: true
tty: true
restart: always
environment:
- HPFEEDS_SERVER=
- HPFEEDS_IDENT=user
- HPFEEDS_SECRET=pass
- HPFEEDS_PORT=20000
- HPFEEDS_CHANNELPREFIX=prefix
# cpu_count: 1
# cpus: 0.25
networks: