Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
CTF
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Grzegorz
CTF
Commits
641349f2
Commit
641349f2
authored
Apr 04, 2016
by
Grzegorz Pietrusza
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.telemabk.pl:jifwin/CTF
parents
0decadb3
9fdefc84
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
10 deletions
+19
-10
flag.txt
flags/PHP_1/Hkuas7VKk7/flag.txt
+2
-2
index.php
flags/PHP_1/index.php
+17
-8
No files found.
flags/PHP_1/Hkuas7VKk7/flag.txt
View file @
641349f2
J
uż blisko ...
J
esteś już bardzo blisko ;)
<?php
//
AGH_{FLAGA}
//
KYN2016_NieLubiePlackuff
flags/PHP_1/index.php
View file @
641349f2
...
...
@@ -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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment