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 @@ - - -
- - -