Compare commits

..

No commits in common. "906a9ecb614a29802478883efdbd441a66ed6251" and "0fa3c7715bbd83cd3819a3548bac595b6d5f4c04" have entirely different histories.

5 changed files with 7 additions and 40 deletions

View file

@ -3,8 +3,8 @@ WORKDIR /app
COPY react-page .
RUN npm i && npm run build
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y apache2 openssl ca-certificates net-tools\
FROM debian:stable-slim
RUN apt-get update && apt-get install -y apache2 openssl ca-certificates \
&& rm -rf /var/lib/apt/lists/* \
&& a2enmod ssl && a2ensite default-ssl
COPY 000-default.conf /etc/apache2/sites-available/000-default.conf

View file

@ -1,15 +1,7 @@
FROM debian
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y dsniff \
&& rm -rf /var/lib/apt/lists/*
COPY ./ip_forward /usr/local/bin/ip_forward
COPY ./index1.html /var/www/html/
RUN apt-get update && apt-get install -y dsniff net-tools apache2 \
&& rm -rf /var/lib/apt/lists/* \
&& apache2ctl start
CMD ["arpspoof", "-i", "eth0", "-t", "webserver", "-r", "webserver"]
# CMD ["curl", "--insecure", "https://webserver/"]
CMD ["dsniff", "-i", "eth0", "-w", "/tmp/dsniff.out"]

View file

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Page internet</title>
</head>
<body>
<h1>Site malveillant</h1>
</body>
</html>

View file

@ -18,15 +18,6 @@ services:
privileged: true
depends_on:
- webserver
victim:
build: docker/victim
container_name: victim
networks:
- mynetwork
depends_on:
- webserver
- attacker
stdin_open: true
networks:
mynetwork:

View file

@ -1,5 +0,0 @@
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y curl python3 python3-pip \
&& rm -rf /var/lib/apt/lists/*