Commit 641349f2 authored by Grzegorz Pietrusza's avatar Grzegorz Pietrusza

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

parents 0decadb3 9fdefc84
Już blisko ...
Jesteś już bardzo blisko ;)
<?php
//AGH_{FLAGA}
//KYN2016_NieLubiePlackuff
......@@ -2,19 +2,28 @@
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$flag = 'AGH_{FLAGA}';
$flag = 'KYN2016_WartoSieGlowic';
$site = filter_input(INPUT_GET, 'site');
if(!$site){
$site='site';
}
$header = filter_input(INPUT_SERVER, 'HTTP_KYN');
if($header !== 'test'){
echo "Nie masz tutaj wstępu...";
$header = filter_input(INPUT_SERVER, 'HTTP_KYN2016');
?>
<html>
<head>
</head>
</html>
<?php
if($header){
?>
Nie masz tutaj wstępu, ale pamiętaj:<br />
<pre>Krak Your Net 2016 na mojej głowie</pre>
<?php
exit;
}
?>
Witaj, masz tu parę linków :)<br />
Witaj, poniżej kilka linków testowych :)<br />
<a href="?site=site1">Strona 1</a> |
<a href="?site=site2">Strona 2</a> |
<a href="?site=site3">Strona 3</a> |
......@@ -22,11 +31,11 @@ Witaj, masz tu parę linków :)<br />
<br />
<pre>
<?php
header("FLAG: {$flag}");
header("KYN2016: {$flag}");
chdir('Hkuas7VKk7');
include_once "{$site}.txt";
echo "<pre>";
?>
</pre>
\ No newline at end of file
</pre>
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