Files
tpotce/docker/adbhoney/Dockerfile

33 lines
877 B
Docker
Raw Normal View History

2024-11-14 16:23:06 +01: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-14 16:23:06 +01:00
RUN echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
apk --no-cache -U add \
build-base \
git \
procps \
py3-psutil \
py3-requests \
2024-11-14 16:23:06 +01:00
py3-pyinstaller@testing \
python3 && \
2019-08-28 12:46:19 +00:00
#
2018-12-05 16:59:08 +00:00
# Install adbhoney from git
2024-11-14 16:23:06 +01:00
git clone https://github.com/t3chn0m4g3/ADBHoney -b pyinstaller /opt/adbhoney && \
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 16:23:06 +01:00
pyinstaller adbhoney.spec
2019-08-28 12:46:19 +00:00
#
2024-11-14 16:23:06 +01: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 16:23:06 +01:00
USER 2000:2000
2018-12-05 16:59:08 +00:00
WORKDIR /opt/adbhoney/
2024-11-14 16:23:06 +01:00
CMD ["./adbhoney"]