Compare commits

...

2 commits

Author SHA1 Message Date
iMax
906a9ecb61 Merge branch 'main' of git.leizour.fr:CyberFlingues/arp-spoofing into main 2025-01-21 11:02:25 +01:00
iMax
86e69f5992 Avancement arpspoof 2025-01-21 11:01:39 +01:00
5 changed files with 40 additions and 7 deletions

View file

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

View file

@ -1,7 +1,15 @@
FROM debian:bookworm-slim FROM debian
RUN apt-get update && apt-get install -y dsniff \
&& rm -rf /var/lib/apt/lists/*
COPY ./ip_forward /usr/local/bin/ip_forward COPY ./ip_forward /usr/local/bin/ip_forward
# CMD ["curl", "--insecure", "https://webserver/"] COPY ./index1.html /var/www/html/
CMD ["dsniff", "-i", "eth0", "-w", "/tmp/dsniff.out"]
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>

View file

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

5
apache/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/*