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
eca16422
Commit
eca16422
authored
Apr 05, 2016
by
Dominik Rosiek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first php
parent
9fdefc84
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
25 additions
and
39 deletions
+25
-39
cat.txt
flags/PHP_1/Hkuas7VKk7/cat.txt
+1
-0
cow.txt
flags/PHP_1/Hkuas7VKk7/cow.txt
+1
-0
dog.txt
flags/PHP_1/Hkuas7VKk7/dog.txt
+1
-0
flag.txt
flags/PHP_1/Hkuas7VKk7/flag.txt
+1
-1
index.txt
flags/PHP_1/Hkuas7VKk7/index.txt
+1
-0
quest.txt
flags/PHP_1/Hkuas7VKk7/quest.txt
+1
-0
site.txt
flags/PHP_1/Hkuas7VKk7/site.txt
+0
-1
site1.txt
flags/PHP_1/Hkuas7VKk7/site1.txt
+0
-1
site2.txt
flags/PHP_1/Hkuas7VKk7/site2.txt
+0
-1
site3.txt
flags/PHP_1/Hkuas7VKk7/site3.txt
+0
-1
site4.txt
flags/PHP_1/Hkuas7VKk7/site4.txt
+0
-1
index.php
flags/PHP_1/index.php
+13
-9
ecb.py
flags/ecb.py
+0
-17
configuration.prod.yml
service/configuration.prod.yml
+6
-7
No files found.
flags/PHP_1/Hkuas7VKk7/cat.txt
0 → 100644
View file @
eca16422
Tu będzie o kotkach
flags/PHP_1/Hkuas7VKk7/cow.txt
0 → 100644
View file @
eca16422
A tu o krówkach
flags/PHP_1/Hkuas7VKk7/dog.txt
0 → 100644
View file @
eca16422
Za to tu o pieskach
flags/PHP_1/Hkuas7VKk7/flag.txt
View file @
eca16422
...
...
@@ -2,4 +2,4 @@ Jesteś już bardzo blisko ;)
<?php
//KYN2016_
NieLubiePlackuff
//KYN2016_
PatriInterentu
flags/PHP_1/Hkuas7VKk7/index.txt
0 → 100644
View file @
eca16422
Zapraszam do oglądania struktury przyszłej strony o zwierzątkach
flags/PHP_1/Hkuas7VKk7/quest.txt
0 → 100644
View file @
eca16422
A gdzie będzie o flagach?
flags/PHP_1/Hkuas7VKk7/site.txt
deleted
100644 → 0
View file @
9fdefc84
1
flags/PHP_1/Hkuas7VKk7/site1.txt
deleted
100644 → 0
View file @
9fdefc84
1
flags/PHP_1/Hkuas7VKk7/site2.txt
deleted
100644 → 0
View file @
9fdefc84
2
flags/PHP_1/Hkuas7VKk7/site3.txt
deleted
100644 → 0
View file @
9fdefc84
3
flags/PHP_1/Hkuas7VKk7/site4.txt
deleted
100644 → 0
View file @
9fdefc84
4
flags/PHP_1/index.php
View file @
eca16422
...
...
@@ -5,29 +5,33 @@ error_reporting(E_ALL);
$flag
=
'KYN2016_WartoSieGlowic'
;
$site
=
filter_input
(
INPUT_GET
,
'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>
<head>
<meta
charset=
"utf-8"
/>
<title>
Tymczasem w budowie...
</title>
</head>
</html>
<?php
if
(
$header
){
if
(
!
$header
){
?>
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
exit
;
}
?>
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>
|
<a
href=
"?site=
site4"
>
Strona 4
</a>
|
<a
href=
"?site=
cat"
>
Kotki
</a>
|
<a
href=
"?site=
dog"
>
Pieski
</a>
|
<a
href=
"?site=
cow"
>
Krówki
</a>
|
<a
href=
"?site=
quest"
>
Pytania?
</a>
<br
/>
<pre>
<?php
...
...
flags/ecb.py
deleted
100644 → 0
View file @
9fdefc84
#!/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
)
service/configuration.prod.yml
View file @
eca16422
...
...
@@ -112,16 +112,15 @@ textTasks:
webTasks
:
-
name
:
"
SQL
Injection"
-
name
:
"
PHP
taki
bezpieczny"
text
:
"
A
może
by
tak
coś z
klasyki?
vol.
1"
url
:
"
http://52.29.190.67"
level
:
3
flags
:
-
value
:
"
AGH_sdfg1fs"
description
:
"
flaga
11"
-
value
:
"
AGH_sdfdg1f"
description
:
"
flaga
22"
-
value
:
"
AGH_sfdfgf1"
description
:
"
flaga
33"
-
value
:
"
KYN2016_WartoSieGlowic"
description
:
"
Set
custom
header
KYN2016"
-
value
:
"
KYN2016_PatriInterentu"
description
:
"
Remote
File
Include"
-
name
:
"
Inna
dziura"
url
:
"
http://wikipedia.pl"
...
...
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