Merge pull request #2 from lenebread/GZ-chall-add-web-warmup

GZ chall add web warmup
This commit is contained in:
charlene
2024-04-17 20:53:29 +08:00
committed by GitHub
5 changed files with 82 additions and 1 deletions

View 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;"]

View File

@@ -0,0 +1,3 @@
Challenge Name: Web Warm-up
Challenge Description: Simple flag but why.html is it not showing?

View 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>

View 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>