Skip to content

Commit

Permalink
Remove ldd
Browse files Browse the repository at this point in the history
  • Loading branch information
rnshah9 authored and ForAllSecure Mayhem Bot committed Jan 8, 2025
1 parent a2113d2 commit 76cd023
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions Dockerfile.mayhem
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y ccache flex bison libnl-3-

COPY . /repo
WORKDIR /repo
RUN ./configure
RUN ./configure --prefix=/install
RUN make -j8

RUN mkdir -p /deps
RUN ldd /repo/mausezahn/mausezahn | tr -s '[:blank:]' '\n' | grep '^/' | xargs -I % sh -c 'cp % /deps;'
RUN make install

FROM ubuntu:22.04 as package

COPY --from=builder /deps /deps
COPY --from=builder /repo/mausezahn/mausezahn /repo/mausezahn/mausezahn
ENV LD_LIBRARY_PATH=/deps
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libpcap-dev libcli-dev libnet1-dev
COPY --from=builder /install /install
2 changes: 1 addition & 1 deletion Mayhemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ project: netsniff-ng
target: mausezahn

cmds:
- cmd: /repo/mausezahn/mausezahn eth0 -f @@
- cmd: /install/sbin/mausezahn eth0 -f @@

0 comments on commit 76cd023

Please sign in to comment.