diff --git a/challenges/web/README.md b/challenges/web/README.md index 5739a23..598e528 100644 --- a/challenges/web/README.md +++ b/challenges/web/README.md @@ -1 +1 @@ -This dir contains challenges related to web +This dir contains challenges related to web diff --git a/challenges/web/web warm-up/Dockerfile b/challenges/web/web warm-up/Dockerfile new file mode 100644 index 0000000..d95ead4 --- /dev/null +++ b/challenges/web/web warm-up/Dockerfile @@ -0,0 +1,17 @@ +FROM debian:latest +RUN apt update && apt install -y nginx + +COPY ./warmweb/ /var/www/html + +RUN rm /etc/nginx/sites-enabled/default +RUN echo "server {" > /etc/nginx/conf.d/default.conf && \ +echo " listen 52001;" >> /etc/nginx/conf.d/default.conf && \ +echo " location / {" >> /etc/nginx/conf.d/default.conf && \ +echo " root /var/www/html;" >> /etc/nginx/conf.d/default.conf && \ +echo " index index.html index.htm;" >> /etc/nginx/conf.d/default.conf && \ +echo " }" >> /etc/nginx/conf.d/default.conf && \ +echo "}" >> /etc/nginx/conf.d/default.conf + +EXPOSE 52001 + +CMD ["nginx", "-g", "daemon off;"] diff --git a/challenges/web/web warm-up/README.md b/challenges/web/web warm-up/README.md new file mode 100644 index 0000000..277625b --- /dev/null +++ b/challenges/web/web warm-up/README.md @@ -0,0 +1,3 @@ +Challenge Name: Web Warm-up + +Challenge Description: Simple flag but why.html is it not showing? diff --git a/challenges/web/web warm-up/warmweb/index.html b/challenges/web/web warm-up/warmweb/index.html new file mode 100644 index 0000000..407767c --- /dev/null +++ b/challenges/web/web warm-up/warmweb/index.html @@ -0,0 +1,38 @@ + + + + + + + + +

I wonder where the flag is...

+

Could there be a hint in the description?

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Click here for the flag! + + \ No newline at end of file diff --git a/challenges/web/web warm-up/warmweb/why.html b/challenges/web/web warm-up/warmweb/why.html new file mode 100644 index 0000000..0e66724 --- /dev/null +++ b/challenges/web/web warm-up/warmweb/why.html @@ -0,0 +1,23 @@ + + + + + + + + +

Why is the flag not showing?


+

Your flag is:









+

HEX{B@s1c_w3B_012siXJv}

+ + \ No newline at end of file