Commit 1ca25f29 authored by Grzegorz Pietrusza's avatar Grzegorz Pietrusza

Merge branch 'master' of gitlab.telemabk.pl:jifwin/CTF

parents 8f2f8d12 b59031fe
...@@ -2,4 +2,4 @@ Jesteś już bardzo blisko ;) ...@@ -2,4 +2,4 @@ Jesteś już bardzo blisko ;)
<?php <?php
//KYN2016_NieLubiePlackuff //KYN2016_PatriInterentu
Zapraszam do oglądania struktury przyszłej strony o zwierzątkach
A gdzie będzie o flagach?
...@@ -5,29 +5,33 @@ error_reporting(E_ALL); ...@@ -5,29 +5,33 @@ error_reporting(E_ALL);
$flag = 'KYN2016_WartoSieGlowic'; $flag = 'KYN2016_WartoSieGlowic';
$site = filter_input(INPUT_GET, 'site'); $site = filter_input(INPUT_GET, 'site');
if(!$site){ if(!$site){
$site='site'; $site='index';
}
$header = filter_input(INPUT_SERVER, 'HTTP_KYN2016', False);
if (!$header){
header("KYN2016: How are you?");
} }
$header = filter_input(INPUT_SERVER, 'HTTP_KYN2016');
?> ?>
<html> <html>
<head> <head>
<meta charset="utf-8" />
<title>Tymczasem w budowie...</title>
</head> </head>
</html> </html>
<?php <?php
if($header){ if(!$header){
?> ?>
Nie masz tutaj wstępu, ale pamiętaj:<br /> Nie masz tutaj wstępu, ale pamiętaj:<br />
<pre>Krak Your Net 2016 na mojej głowie</pre> <pre>Krak Your Net 2016 w mojej głowie</pre>
<?php <?php
exit; exit;
} }
?> ?>
Witaj, poniżej kilka linków testowych :)<br /> Witaj, poniżej kilka linków testowych :)<br />
<a href="?site=site1">Strona 1</a> | <a href="?site=cat">Kotki</a> |
<a href="?site=site2">Strona 2</a> | <a href="?site=dog">Pieski</a> |
<a href="?site=site3">Strona 3</a> | <a href="?site=cow">Krówki</a> |
<a href="?site=site4">Strona 4</a> | <a href="?site=quest">Pytania?</a>
<br /> <br />
<pre> <pre>
<?php <?php
......
taiga_46: taiga_46:
- depend - depend
- Kodowania base64, rot13, rot47 w jednym skrypcie - Kodowania base64, rot13, rot47 w jednym skrypcie
taiga_48: taiga_48.html:8e4c93cc865a3b3d85d3613aa0ba9500:
- supereasy - supereasy
- Zwykłe przekierowania w JS - Zwykłe przekierowania w JS
taiga_62: taiga_62:
......
#!/usr/bin/python
# coding=utf-8
flag = "AGH_{FLAGA}"
text = "To jest przykładowy tekst!"
flag_int = [ord(letter) for letter in flag]
text_int = [ord(letter) for letter in text]
for i in range(len(text_int) % len(flag_int)):
text_int.append(0)
flag_int = len(text_int)/len(flag_int)*flag_int
result = [chr(i^j) for i,j in zip(flag_int, text_int)]
print "".join(result)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Close all</title>
<script>
document.location.href="//google.pl";
flag = "KYN2016_OpenYourEyes"
</script>
</head>
<body>
</body>
</html>
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<title>Close all</title> <title>Close all</title>
<script> <script>
document.location.href="//google.pl"; document.location.href="//google.pl";
flag = "AGH_{JuStGoogleIt}" flag = "KYN2016_OpenYourEyes"
</script> </script>
</head> </head>
<body> <body>
......
...@@ -115,26 +115,20 @@ textTasks: ...@@ -115,26 +115,20 @@ textTasks:
webTasks: webTasks:
- name: "SQL Injection" - name: "PHP taki bezpieczny"
url: "http://google.pl" description: "A może by tak coś z klasyki? vol. 1"
description: "Opis zadania SQL INJECTION" url: "http://52.29.190.67"
level: 3 level: 3
flags: flags:
- value: "AGH_sdfg1fs" - value: "KYN2016_WartoSieGlowic"
description: "flaga 11" description: "Set custom header KYN2016"
- value: "AGH_sdfdg1f" - value: "KYN2016_PatriInterentu"
description: "flaga 22" description: "Remote File Include"
- value: "AGH_sfdfgf1"
description: "flaga 33"
- name: "Inna dziura" - name: "Zadanie testowe nr. 7"
description: "Opis zadania inna dziura" description: "Opis zadania testowego. Usunąć w wersji produkcyjnej."
url: "http://wikipedia.pl" url: "http://localhost:1337/flags/8e4c93cc865a3b3d85d3613aa0ba9500/index.html"
level: 4 level: 4
flags: flags:
- value: "AGH_sdfffg1fs" - value: "KYN2016_OpenYourEyes"
description: "flaga 11" description: "Source"
- value: "AGH_sffdfdg1f"
description: "flaga 22"
- value: "AGH_sdfassfdfgf1"
description: "flaga 33"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment