diff --git a/apache/apache2/dockerfile b/apache/apache2/dockerfile index c77c8f6..a7f95e9 100644 --- a/apache/apache2/dockerfile +++ b/apache/apache2/dockerfile @@ -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 diff --git a/apache/attacker/dockerfile b/apache/attacker/dockerfile index ff1f6bb..f67ba01 100644 --- a/apache/attacker/dockerfile +++ b/apache/attacker/dockerfile @@ -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"] \ No newline at end of file +# CMD ["curl", "--insecure", "https://webserver/"] +CMD ["dsniff", "-i", "eth0", "-w", "/tmp/dsniff.out"] \ No newline at end of file diff --git a/apache/attacker/index1.html b/apache/attacker/index1.html deleted file mode 100644 index dce05d1..0000000 --- a/apache/attacker/index1.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - Page internet - - -

Site malveillant

- - diff --git a/apache/compose.yml b/apache/compose.yml index dd92023..a832140 100644 --- a/apache/compose.yml +++ b/apache/compose.yml @@ -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: diff --git a/apache/victim/dockerfile b/apache/victim/dockerfile deleted file mode 100644 index da0e39b..0000000 --- a/apache/victim/dockerfile +++ /dev/null @@ -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/* - -