This commit is contained in:
iMax 2025-01-21 08:21:04 +01:00
commit 865127a0a9
5 changed files with 40 additions and 0 deletions

2
Rapport.md Normal file
View file

@ -0,0 +1,2 @@
# Protocole Cryptographique
## Introduction

14
compose.yml Normal file
View file

@ -0,0 +1,14 @@
services:
webserver:
build: .
ports:
- "5000:5000"
volumes:
- .:/code
attacker:
build: .
ports:
- "5001:5001"
volumes:
- .:/code

View file

12
dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM ubuntu:lastest AS webserver
RUN apt-get update && apt-get install -y apache2
WORKDIR /var/www/html
COPY ./public/ .
CMD ["apache2ctl", "-D", "FOREGROUND"]
FROM alpine:latest AS attacker
RUN apk add --no-cache curl
CMD ["curl", "webserver:80"]

12
public/index.html Normal file
View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Serveur Web - Honnete</title>
</head>
<body>
<h1>Page d'accueil</h1>
<p>Le serveur web est honnête.</p>
</body>
</html>