2024-11-14 15:23:06 +00:00
|
|
|
FROM alpine:3.20 AS builder
|
2019-08-28 12:46:19 +00:00
|
|
|
#
|
|
|
|
# Include dist
|
2022-03-05 00:50:47 +00:00
|
|
|
COPY dist/ /root/dist/
|
2019-08-28 12:46:19 +00:00
|
|
|
#
|
2024-09-11 10:42:17 +00:00
|
|
|
# Install packages
|
2024-11-19 14:10:57 +00:00
|
|
|
RUN apk --no-cache -U add \
|
2024-11-14 15:23:06 +00:00
|
|
|
build-base \
|
2024-02-28 18:07:22 +00:00
|
|
|
git \
|
|
|
|
procps \
|
|
|
|
py3-psutil \
|
|
|
|
py3-requests \
|
2024-11-19 14:10:57 +00:00
|
|
|
py3-pip \
|
2024-02-28 18:07:22 +00:00
|
|
|
python3 && \
|
2024-11-19 14:10:57 +00:00
|
|
|
pip3 install --break-system-packages pyinstaller && \
|
2019-08-28 12:46:19 +00:00
|
|
|
#
|
2018-12-05 16:59:08 +00:00
|
|
|
# Install adbhoney from git
|
2024-11-14 15:23:06 +00:00
|
|
|
git clone https://github.com/t3chn0m4g3/ADBHoney -b pyinstaller /opt/adbhoney && \
|
2020-09-02 15:18:32 +00:00
|
|
|
cd /opt/adbhoney && \
|
2019-08-28 12:46:19 +00:00
|
|
|
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 && \
|
2024-11-14 15:23:06 +00:00
|
|
|
pyinstaller adbhoney.spec
|
2019-08-28 12:46:19 +00:00
|
|
|
#
|
2024-11-14 15:23:06 +00:00
|
|
|
FROM alpine:3.20
|
|
|
|
COPY --from=builder /opt/adbhoney/dist/adbhoney/ /opt/adbhoney/
|
2019-08-28 12:46:19 +00:00
|
|
|
#
|
2018-12-05 16:59:08 +00:00
|
|
|
# Set workdir and start adbhoney
|
|
|
|
STOPSIGNAL SIGINT
|
2024-11-14 15:23:06 +00:00
|
|
|
USER 2000:2000
|
2018-12-05 16:59:08 +00:00
|
|
|
WORKDIR /opt/adbhoney/
|
2024-11-14 15:23:06 +00:00
|
|
|
CMD ["./adbhoney"]
|