first chalenges
This commit is contained in:
commit
9f14aeff50
|
@ -0,0 +1,12 @@
|
|||
FROM ubuntu:22.10
|
||||
FROM python
|
||||
|
||||
WORKDIR /home/ctf/
|
||||
ADD index.html .
|
||||
|
||||
WORKDIR /home/ctf/admin
|
||||
ADD admin .
|
||||
|
||||
WORKDIR /home/ctf/
|
||||
|
||||
CMD ["python", "-m", "http.server", "3318"]
|
|
@ -0,0 +1 @@
|
|||
flag{m1ghtN33dT08ru73f0rc350m3t1m3s;)}
|
|
@ -0,0 +1,8 @@
|
|||
<header>
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
||||
</header>
|
||||
<body>
|
||||
<h1>Nice try ;)</h1>
|
||||
<p>Esta vez tendrás que esforzarte un poco más... y sin pistas :P</p>
|
||||
<p>This time you will have to put more effort to get it... and with no hints :P</p>
|
||||
</body>
|
|
@ -0,0 +1,18 @@
|
|||
FROM ubuntu:22.10
|
||||
FROM python
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
WORKDIR /home/ctf
|
||||
|
||||
ADD index.html .
|
||||
WORKDIR /home/ctf/content
|
||||
|
||||
ADD hint.html .
|
||||
WORKDIR /home/ctf/content/flag
|
||||
|
||||
ADD flag.txt .
|
||||
|
||||
WORKDIR /home/ctf
|
||||
EXPOSE 3317
|
||||
CMD ["python", "-m", "http.server", "3317"]
|
|
@ -0,0 +1 @@
|
|||
flag{f1r5tFl4gG00dJ08}
|
|
@ -0,0 +1,7 @@
|
|||
<header>
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
||||
</header>
|
||||
<body>
|
||||
<p>Ves, ya has encontrado algo! Mira si hay cositas interesantes :) PS: Te has fijado en la url?</p>
|
||||
<p>You see? You've already found somehting interesting :) PS: Have you paid attention to the url?</p>
|
||||
</body>
|
|
@ -0,0 +1,17 @@
|
|||
<header>
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
||||
</header>
|
||||
|
||||
<body>
|
||||
<h1>Saludos desde la liga de Cyb3rs3cur17y</h1>
|
||||
<p>Este es el primer reto CTF creado por la liga. Tu objetivo es encontrar una flag, que no es más que un texto el estilo flag{estoEsUnaFlag} que
|
||||
se ecnontrará en un lugar donde, en un escenario real, podría haber información de utilidad, de tal forma que sea lo más realista posible.
|
||||
</p>
|
||||
<p>
|
||||
This is the first CTF challenge created by the cyb3rs3cur17y league. Your goal is to find a flag with the format flag{thisIsAFlag} that will be in a
|
||||
place where, in a real scenario, there might be some juicy information. That way challenges are as realistic as possible.
|
||||
</p>
|
||||
<a href="./content/hint.html">PISTA//HINT</a>
|
||||
<footer>Made with :love: by lowe (aka alrodri2)</footer>
|
||||
</body>
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
FROM ubuntu/apache2
|
||||
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install vim -y
|
||||
RUN apt-get install php libapache2-mod-php -y
|
||||
|
||||
WORKDIR /var/www/html
|
||||
ADD ./html/flag.txt .
|
||||
|
||||
WORKDIR /var/www/html/dir1
|
||||
ADD ./html/dir1/index.html .
|
||||
ADD ./html/dir1/index.php .
|
||||
ADD ./html/dir1/flag.txt .
|
||||
|
||||
WORKDIR /
|
||||
EXPOSE 80
|
|
@ -0,0 +1 @@
|
|||
Nice try ;)
|
|
@ -0,0 +1,10 @@
|
|||
<html>
|
||||
<body>
|
||||
<h1>Document Finder</h1>
|
||||
<p>Someone told me you are looking for a document. Just type the name of it and I will show you its content :)</p>
|
||||
<form action="index.php" method="POST">
|
||||
<input type="text" name="file" />
|
||||
<input type="submit" value="Take a look" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
$directory=$_POST['file'];
|
||||
if (file_exists($directory))
|
||||
{
|
||||
$output = shell_exec("cat $directory");
|
||||
print "$output";
|
||||
}
|
||||
else
|
||||
print "File does not exist, sorry";
|
||||
?>
|
|
@ -0,0 +1 @@
|
|||
flag{p47h7r4v3rs4l1s7h3w4y}
|
Binary file not shown.
Loading…
Reference in New Issue