mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
include docker repos
... skip emobility since it is a dev repo
This commit is contained in:
35
docker/mailoney/Dockerfile
Normal file
35
docker/mailoney/Dockerfile
Normal file
@ -0,0 +1,35 @@
|
||||
FROM alpine
|
||||
MAINTAINER MO
|
||||
|
||||
# Install packages
|
||||
RUN apk -U upgrade && \
|
||||
apk add autoconf automake bash build-base git libtool procps py-pip python python-dev && \
|
||||
|
||||
# Install libemu
|
||||
git clone https://github.com/buffer/libemu /root/libemu/ && \
|
||||
cd /root/libemu/ && \
|
||||
autoreconf -vi && \
|
||||
./configure && \
|
||||
make && \
|
||||
make install && \
|
||||
|
||||
# Install libemu python wrapper
|
||||
pip install pylibemu && \
|
||||
|
||||
# Install mailoney from git
|
||||
git clone https://github.com/awhitehatter/mailoney /opt/mailoney && \
|
||||
|
||||
# Setup user, groups and configs
|
||||
addgroup -g 2000 mailoney && \
|
||||
adduser -S -H -s /bin/bash -u 2000 -D -g 2000 mailoney && \
|
||||
chown -R mailoney:mailoney /opt/mailoney && \
|
||||
|
||||
# Clean up
|
||||
apk del autoconf automake build-base git py-pip python-dev && \
|
||||
rm -rf /root/* && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
# Set workdir and start glastopf
|
||||
USER mailoney
|
||||
WORKDIR /opt/mailoney/
|
||||
CMD ["/usr/bin/python","mailoney.py","-i","0.0.0.0","-p","2525","-s","mailserver","-t","schizo_open_relay"]
|
4
docker/mailoney/README.md
Normal file
4
docker/mailoney/README.md
Normal file
@ -0,0 +1,4 @@
|
||||
[](https://microbadger.com/images/dtagdevsec/mailoney:1706 "Get your own version badge on microbadger.com") [](https://microbadger.com/images/dtagdevsec/mailoney:1706 "Get your own image badge on microbadger.com")
|
||||
|
||||
# mailoney
|
||||
Dockerized mailoney for use in T-Pot
|
18
docker/mailoney/docker-compose.yml
Normal file
18
docker/mailoney/docker-compose.yml
Normal file
@ -0,0 +1,18 @@
|
||||
version: '2.1'
|
||||
|
||||
networks:
|
||||
mailoney_local:
|
||||
|
||||
services:
|
||||
|
||||
# Mailoney service
|
||||
mailoney:
|
||||
container_name: mailoney
|
||||
restart: always
|
||||
networks:
|
||||
- mailoney_local
|
||||
ports:
|
||||
- "25:2525"
|
||||
image: "dtagdevsec/mailoney:1706"
|
||||
# volumes:
|
||||
# - /data/mailoney/log:/opt/mailoney/logs
|
Reference in New Issue
Block a user