2024-12-04 19:52:30 +00:00
|
|
|
FROM golang:1.23-alpine AS builder
|
|
|
|
#
|
|
|
|
ENV GO111MODULE=on \
|
|
|
|
CGO_ENABLED=0 \
|
|
|
|
GOOS=linux
|
2019-08-28 14:52:25 +00:00
|
|
|
#
|
2024-09-11 10:42:17 +00:00
|
|
|
# Install packages
|
2024-12-05 21:39:01 +00:00
|
|
|
RUN apk --no-cache -U upgrade && \
|
|
|
|
apk --no-cache -U add \
|
2024-12-04 19:52:30 +00:00
|
|
|
build-base \
|
|
|
|
git \
|
|
|
|
g++
|
2019-08-28 14:52:25 +00:00
|
|
|
#
|
2018-09-09 18:00:59 +00:00
|
|
|
# Setup go, build medpot
|
2024-12-04 19:52:30 +00:00
|
|
|
RUN mkdir -p /usr/local/go/src/medpot && \
|
|
|
|
git clone https://github.com/schmalle/medpot /usr/local/go/src/medpot && \
|
|
|
|
cd /usr/local/go/src/medpot && \
|
2024-02-14 20:14:40 +00:00
|
|
|
git checkout 75a2e6134cf926c35b6017d62542274434c87388 && \
|
2024-12-04 19:52:30 +00:00
|
|
|
go mod init github.com/schmalle/medpot && \
|
|
|
|
go mod tidy && \
|
|
|
|
go mod download && \
|
2024-02-14 20:14:40 +00:00
|
|
|
cp dist/etc/ews.cfg /etc/ && \
|
tweaking
updating .env, env.example and compose files regarding sentrypeer ENVs
make glutton image aware of payloads feature
bump glutton to latest master, alpine 3.19, multi-stage build
bump ipphoney to alpine 3.19
bump mailoney to alpine 3.19, adjust for py3
revert medpot to previous master, use multi stage build and alpine 3.19
bump cyberchef to latest master
bump ngninx to alpine 3.19
bump p0f to alpine 3.19, use multi stage build
bump redishoneypot to alpine 3.19, use multi stage build
bump sentrypeer to latest master, fix bug for open ports in compose files, now all tcp/5060, udp/5060 traffic will be seen
bump spiderfoot to latest master
bump spiderfoot to alpine 3.19
bump suricata to 7.0.2, fix performance issue with capture-filter-bpf by reducing the rules
update clean.sh to include glutton payloads folder
2024-03-09 11:11:14 +00:00
|
|
|
go build medpot
|
|
|
|
#
|
2024-12-04 19:52:30 +00:00
|
|
|
FROM scratch
|
2019-08-28 14:52:25 +00:00
|
|
|
#
|
2018-09-09 18:00:59 +00:00
|
|
|
# Setup medpot
|
tweaking
updating .env, env.example and compose files regarding sentrypeer ENVs
make glutton image aware of payloads feature
bump glutton to latest master, alpine 3.19, multi-stage build
bump ipphoney to alpine 3.19
bump mailoney to alpine 3.19, adjust for py3
revert medpot to previous master, use multi stage build and alpine 3.19
bump cyberchef to latest master
bump ngninx to alpine 3.19
bump p0f to alpine 3.19, use multi stage build
bump redishoneypot to alpine 3.19, use multi stage build
bump sentrypeer to latest master, fix bug for open ports in compose files, now all tcp/5060, udp/5060 traffic will be seen
bump spiderfoot to latest master
bump spiderfoot to alpine 3.19
bump suricata to 7.0.2, fix performance issue with capture-filter-bpf by reducing the rules
update clean.sh to include glutton payloads folder
2024-03-09 11:11:14 +00:00
|
|
|
#
|
2024-12-04 19:52:30 +00:00
|
|
|
COPY --from=builder /usr/local/go/src/medpot/medpot /opt/medpot/medpot
|
|
|
|
COPY --from=builder /usr/local/go/src/medpot/template/*.xml /opt/medpot/
|
|
|
|
COPY --from=builder /usr/local/go/src/medpot/dist/etc/ews.cfg /etc/ews.cfg
|
2019-08-28 14:52:25 +00:00
|
|
|
#
|
2018-09-09 18:00:59 +00:00
|
|
|
# Start medpot
|
|
|
|
WORKDIR /opt/medpot
|
2024-12-04 19:52:30 +00:00
|
|
|
USER 2000:2000
|
2018-09-09 18:00:59 +00:00
|
|
|
CMD ["./medpot"]
|