Debug du docker avec dsniff
This commit is contained in:
parent
16002551ea
commit
d907d4df38
3 changed files with 8 additions and 4 deletions
|
@ -15,6 +15,7 @@ services:
|
|||
- 5001:5001
|
||||
networks:
|
||||
- mynetwork
|
||||
privileged: true
|
||||
depends_on:
|
||||
- webserver
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
FROM debian:stable-slim
|
||||
FROM debian:bookworm-slim
|
||||
RUN apt-get update && apt-get install -y dsniff \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& echo 1 >> /proc/sys/net/ipv4/ip_forward
|
||||
CMD ["curl", "--insecure", "https://webserver/"]
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY ./ip_forward /usr/local/bin/ip_forward
|
||||
# CMD ["curl", "--insecure", "https://webserver/"]
|
||||
CMD ["dsniff", "-i", "eth0", "-w", "/tmp/dsniff.out"]
|
1
docker/attacker/ip_forward
Normal file
1
docker/attacker/ip_forward
Normal file
|
@ -0,0 +1 @@
|
|||
1
|
Loading…
Add table
Add a link
Reference in a new issue