update adbhoney to latest alpine base image

This commit is contained in:
t3chn0m4g3 2026-05-27 12:20:31 +02:00
parent 98e9d6bde8
commit d709cfd1fd

View file

@ -1,4 +1,4 @@
FROM alpine:3.20 AS builder FROM alpine:3.23 AS builder
# #
# Include dist # Include dist
COPY dist/ /root/dist/ COPY dist/ /root/dist/
@ -18,13 +18,13 @@ RUN apk --no-cache -U upgrade && \
# Install adbhoney from git # Install adbhoney from git
git clone https://github.com/t3chn0m4g3/ADBHoney /opt/adbhoney && \ git clone https://github.com/t3chn0m4g3/ADBHoney /opt/adbhoney && \
cd /opt/adbhoney && \ cd /opt/adbhoney && \
git checkout 42a73cd8a82ddd4d137de70ac37b1a8b2e3e0119 && \ git checkout e03c608a662e381e645a3641d2286e80db006591 && \
cp /root/dist/adbhoney.cfg /opt/adbhoney && \ cp /root/dist/adbhoney.cfg /opt/adbhoney && \
sed -i 's/dst_ip/dest_ip/' /opt/adbhoney/adbhoney/core.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 && \ sed -i 's/dst_port/dest_port/' /opt/adbhoney/adbhoney/core.py && \
pyinstaller adbhoney.spec pyinstaller adbhoney.spec
# #
FROM alpine:3.20 FROM alpine:3.23
RUN apk --no-cache -U upgrade RUN apk --no-cache -U upgrade
COPY --from=builder /opt/adbhoney/dist/adbhoney/ /opt/adbhoney/ COPY --from=builder /opt/adbhoney/dist/adbhoney/ /opt/adbhoney/
# #