2024-11-28 11:03:57 +00:00
|
|
|
FROM golang:1.23-alpine AS builder
|
2019-10-15 14:50:39 +00:00
|
|
|
#
|
2018-04-13 18:22:49 +00:00
|
|
|
# Include dist
|
2022-03-08 23:36:03 +00:00
|
|
|
COPY dist/ /root/dist/
|
2019-10-15 14:50:39 +00:00
|
|
|
#
|
2018-04-13 18:22:49 +00:00
|
|
|
# Setup apk
|
2024-12-05 20:12:18 +00:00
|
|
|
RUN apk --no-cache -U upgrade && \
|
|
|
|
apk -U --no-cache add \
|
2024-05-07 12:26:18 +00:00
|
|
|
make \
|
|
|
|
git \
|
|
|
|
g++ \
|
2024-03-05 18:50:35 +00:00
|
|
|
iptables-dev \
|
|
|
|
libpcap-dev && \
|
2019-10-15 14:50:39 +00:00
|
|
|
#
|
2018-04-13 18:22:49 +00:00
|
|
|
# Setup go, glutton
|
2024-03-05 18:50:35 +00:00
|
|
|
mkdir -p /opt/ && \
|
|
|
|
cd /opt/ && \
|
2019-10-15 14:50:39 +00:00
|
|
|
git clone https://github.com/mushorg/glutton && \
|
2024-03-05 18:50:35 +00:00
|
|
|
cd /opt/glutton/ && \
|
2024-11-28 11:03:57 +00:00
|
|
|
git checkout b3b5944b79893ccb1da19e112571674841bbe124 && \
|
2024-03-05 18:50:35 +00:00
|
|
|
cp /root/dist/system.go . && \
|
2018-04-13 18:22:49 +00:00
|
|
|
make build && \
|
2024-11-28 11:03:57 +00:00
|
|
|
cp /root/dist/*.yaml /opt/glutton/config/
|
2022-06-03 14:21:55 +00:00
|
|
|
#
|
2024-11-28 11:03:57 +00:00
|
|
|
FROM alpine:3.20
|
2022-06-03 14:21:55 +00:00
|
|
|
#
|
2024-03-05 18:50:35 +00:00
|
|
|
COPY --from=builder /opt/glutton/bin /opt/glutton/bin
|
|
|
|
COPY --from=builder /opt/glutton/config /opt/glutton/config
|
2022-06-03 14:21:55 +00:00
|
|
|
#
|
2024-11-28 11:03:57 +00:00
|
|
|
RUN apk -U --no-cache upgrade && \
|
|
|
|
apk -U --no-cache add \
|
|
|
|
iptables \
|
|
|
|
libcap \
|
2024-05-07 12:26:18 +00:00
|
|
|
libpcap-dev && \
|
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
|
|
|
setcap cap_net_admin,cap_net_raw=+ep /opt/glutton/bin/server && \
|
|
|
|
setcap cap_net_admin,cap_net_raw=+ep /sbin/xtables-nft-multi && \
|
|
|
|
mkdir -p /var/log/glutton \
|
2024-11-28 11:03:57 +00:00
|
|
|
/opt/glutton/payloads
|
2019-10-15 14:50:39 +00:00
|
|
|
#
|
2018-05-16 16:37:41 +00:00
|
|
|
# Start glutton
|
2018-04-13 18:22:49 +00:00
|
|
|
WORKDIR /opt/glutton
|
2024-11-28 11:03:57 +00:00
|
|
|
USER 2000:2000
|
2025-02-25 11:39:22 +00:00
|
|
|
CMD exec bin/server -d true -i $(/sbin/ip address show | /usr/bin/awk '/inet.*(brd|global)/{ print $NF; exit }') -l /var/log/glutton/glutton.log > /dev/null 2>&1
|