commit 865127a0a9723ba40827c4e2d5d662b32f41ab75 Author: iMax Date: Tue Jan 21 08:21:04 2025 +0100 First diff --git a/Rapport.md b/Rapport.md new file mode 100644 index 0000000..1fc2d72 --- /dev/null +++ b/Rapport.md @@ -0,0 +1,2 @@ +# Protocole Cryptographique +## Introduction diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..63e189f --- /dev/null +++ b/compose.yml @@ -0,0 +1,14 @@ +services: + webserver: + build: . + ports: + - "5000:5000" + volumes: + - .:/code + attacker: + build: . + ports: + - "5001:5001" + volumes: + - .:/code + \ No newline at end of file diff --git a/docker/apache2/default-ssl.conf b/docker/apache2/default-ssl.conf new file mode 100644 index 0000000..e69de29 diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..8865281 --- /dev/null +++ b/dockerfile @@ -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"] \ No newline at end of file diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..f292de3 --- /dev/null +++ b/public/index.html @@ -0,0 +1,12 @@ + + + + + + Serveur Web - Honnete + + +

Page d'accueil

+

Le serveur web est honnĂȘte.

+ + \ No newline at end of file