Merge pull request #2 from lenebread/GZ-chall-add-web-warmup
GZ chall add web warmup
This commit is contained in:
@@ -1 +1 @@
|
|||||||
This dir contains challenges related to web
|
This dir contains challenges related to web
|
||||||
|
|||||||
17
challenges/web/web warm-up/Dockerfile
Normal file
17
challenges/web/web warm-up/Dockerfile
Normal file
@@ -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;"]
|
||||||
3
challenges/web/web warm-up/README.md
Normal file
3
challenges/web/web warm-up/README.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
Challenge Name: Web Warm-up
|
||||||
|
|
||||||
|
Challenge Description: Simple flag but why.html is it not showing?
|
||||||
38
challenges/web/web warm-up/warmweb/index.html
Normal file
38
challenges/web/web warm-up/warmweb/index.html
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
<!DOCTYPE HTML>
|
||||||
|
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<style>
|
||||||
|
h1, h2, h3 {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
body{
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<h1>I wonder where the flag is...</h1>
|
||||||
|
<h2>Could there be a hint in the description?</h2>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<a href="why.html">Click here for the flag!</a>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
23
challenges/web/web warm-up/warmweb/why.html
Normal file
23
challenges/web/web warm-up/warmweb/why.html
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<!DOCTYPE HTML>
|
||||||
|
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<style>
|
||||||
|
body{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
p{
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
body{
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<h1>Why is the flag not showing?</h1><br>
|
||||||
|
<h2>Your flag is:</h2><br><br><br><br><br><br><br><br>
|
||||||
|
<p>HEX{B@s1c_w3B_012siXJv}</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user