diff --git a/docker/adbhoney/Dockerfile b/docker/adbhoney/Dockerfile index e6a0e0c3..b49e344b 100644 --- a/docker/adbhoney/Dockerfile +++ b/docker/adbhoney/Dockerfile @@ -4,7 +4,8 @@ FROM alpine:3.20 AS builder COPY dist/ /root/dist/ # # Install packages -RUN apk --no-cache -U add \ +RUN apk --no-cache -U upgrade && \ + apk --no-cache -U add \ build-base \ git \ procps \ @@ -17,12 +18,14 @@ RUN apk --no-cache -U add \ # Install adbhoney from git git clone https://github.com/t3chn0m4g3/ADBHoney /opt/adbhoney && \ cd /opt/adbhoney && \ + git checkout 42a73cd8a82ddd4d137de70ac37b1a8b2e3e0119 && \ cp /root/dist/adbhoney.cfg /opt/adbhoney && \ sed -i 's/dst_ip/dest_ip/' /opt/adbhoney/adbhoney/core.py && \ sed -i 's/dst_port/dest_port/' /opt/adbhoney/adbhoney/core.py && \ pyinstaller adbhoney.spec # FROM alpine:3.20 +RUN apk --no-cache -U upgrade COPY --from=builder /opt/adbhoney/dist/adbhoney/ /opt/adbhoney/ # # Set workdir and start adbhoney diff --git a/docker/adbhoney/Dockerfile.old b/docker/adbhoney/Dockerfile.old deleted file mode 100644 index 8e5ec90a..00000000 --- a/docker/adbhoney/Dockerfile.old +++ /dev/null @@ -1,39 +0,0 @@ -FROM alpine:3.20 -# -# Include dist -COPY dist/ /root/dist/ -# -# Install packages -RUN apk --no-cache -U add \ - git \ - procps \ - py3-psutil \ - py3-requests \ - python3 && \ -# -# Install adbhoney from git - git clone https://github.com/t3chn0m4g3/ADBHoney /opt/adbhoney && \ -# cd /opt/adbhoney && \ -# git checkout 2417a7a982f4fd527b3a048048df9a23178767ad && \ -# git checkout 42afd98611724ca3d694a48b694c957e8d953db4 && \ - cp /root/dist/adbhoney.cfg /opt/adbhoney && \ - cp /root/dist/cpu_check.py / && \ - sed -i 's/dst_ip/dest_ip/' /opt/adbhoney/adbhoney/core.py && \ - sed -i 's/dst_port/dest_port/' /opt/adbhoney/adbhoney/core.py && \ -# -# Setup user, groups and configs - addgroup -g 2000 adbhoney && \ - adduser -S -H -s /bin/ash -u 2000 -D -g 2000 adbhoney && \ - chown -R adbhoney:adbhoney /opt/adbhoney && \ -# -# Clean up - apk del --purge git && \ - rm -rf /root/* /opt/adbhoney/.git /var/cache/apk/* -# -# Set workdir and start adbhoney -STOPSIGNAL SIGINT -# Adbhoney sometimes hangs at 100% CPU usage, if detected container will become unhealthy and restarted by tpotinit -HEALTHCHECK --interval=5m --timeout=30s --retries=3 CMD python3 /cpu_check.py $(pgrep -of run.py) 99 -USER adbhoney:adbhoney -WORKDIR /opt/adbhoney/ -CMD ["/usr/bin/python3", "run.py"] diff --git a/docker/beelzebub/Dockerfile b/docker/beelzebub/Dockerfile index f8df3281..0dd01398 100644 --- a/docker/beelzebub/Dockerfile +++ b/docker/beelzebub/Dockerfile @@ -10,7 +10,9 @@ RUN apk -U add git WORKDIR /root # # Build beelzebub -RUN git clone https://github.com/t3chn0m4g3/beelzebub +RUN git clone https://github.com/t3chn0m4g3/beelzebub && \ + cd beelzebub && \ + git checkout 17a0854b8d9d1e41cf5435b5dc85354bbfb9093c WORKDIR /root/beelzebub RUN go mod download RUN go build -o main . diff --git a/docker/beelzebub/Dockerfile.old b/docker/beelzebub/Dockerfile.old deleted file mode 100644 index a8f452c3..00000000 --- a/docker/beelzebub/Dockerfile.old +++ /dev/null @@ -1,39 +0,0 @@ -FROM golang:1.20-alpine AS builder -# -ENV GO111MODULE=on \ - CGO_ENABLED=0 \ - GOOS=linux -# -# Install packages -RUN apk -U add git -# -WORKDIR /root -# -# Build beelzebub -RUN git clone https://github.com/t3chn0m4g3/beelzebub -WORKDIR /root/beelzebub -RUN go mod download -RUN go build -o main . -# -FROM alpine:3.20 -# -COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ -COPY --from=builder /root/beelzebub/main /opt/beelzebub/ -COPY --from=builder /root/beelzebub/configurations /opt/beelzebub/configurations -# -# Setup user, groups and configs -RUN <