Skip to content

Commit

Permalink
Add libpcap
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdot-dev committed Feb 26, 2024
1 parent 6b60e06 commit 3a46cee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@ FROM finchsec/kali:base as builder
# hadolint ignore=DL3005,DL3008,DL3015
RUN apt-get update && \
apt-get dist-upgrade -y && \
apt-get install ca-certificates git gcc make libc6-dev -y --no-install-recommends
apt-get install ca-certificates git gcc make libc6-dev libpcap-dev -y --no-install-recommends
RUN git clone https://github.com/ZerBea/hcxdumptool
WORKDIR /hcxdumptool
RUN make

FROM finchsec/kali:base
LABEL org.opencontainers.image.authors="thomas@finchsec.com"
# hadolint ignore=DL3005,DL3008
RUN apt-get update && \
apt-get dist-upgrade -y && \
apt-get install libpcap0.8 -y --no-install-recommends && \
rm -rf /var/lib/dpkg/status-old /var/lib/apt/lists/*
COPY --from=builder /hcxdumptool/hcxdumptool /usr/local/sbin/
CMD [ "/usr/local/sbin/hcxdumptool" ]

0 comments on commit 3a46cee

Please sign in to comment.