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
728ff306
Commit
728ff306
authored
Mar 30, 2016
by
Dominik Rosiek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flags init
parent
d74fbd2d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
0 deletions
+73
-0
README.md
flags/README.md
+7
-0
taiga_46.py
flags/taiga_46.py
+52
-0
taiga_48.html
flags/taiga_48.html
+14
-0
No files found.
flags/README.md
0 → 100644
View file @
728ff306
taiga_46:
-
depend
-
Kodowania base64, rot13, rot47 w jednym skrypcie
taiga_48:
-
supereasy
-
Zwykłe przekierowania w JS
flags/taiga_46.py
0 → 100644
View file @
728ff306
from
sys
import
argv
from
_codecs
import
encode
from
base64
import
b64encode
,
b64decode
import
sys
def
a
(
string
):
return
encode
(
string
,
'rot_13'
)
def
c
(
s
):
x
=
[]
for
i
in
xrange
(
len
(
s
)):
j
=
ord
(
s
[
i
])
if
j
>=
33
and
j
<=
126
:
x
.
append
(
chr
(
33
+
((
j
+
14
)
%
94
)))
else
:
x
.
append
(
s
[
i
])
return
''
.
join
(
x
)
def
b
(
string
):
return
b64encode
(
string
)
def
d
(
string
):
return
b64decode
(
string
)
if
len
(
argv
)
<
3
:
print
"""Usage:
python taiga_46.py <type> <text>
type:
- b base64
- d base64_decode (for testing)
- a rot13
- c rot47
for example: python taiga46.py bbac test return rot47(rot13(base64(base64("test"))))
"""
exit
(
0
)
text
=
" "
.
join
(
argv
[
2
:])
result
=
text
for
letter
in
argv
[
1
]:
if
letter
==
"a"
:
result
=
a
(
result
)
elif
letter
==
"b"
:
result
=
b
(
result
)
elif
letter
==
"c"
:
result
=
c
(
result
)
elif
letter
==
"d"
:
result
=
d
(
result
)
print
result
flags/taiga_48.html
0 → 100644
View file @
728ff306
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Close all
</title>
<script>
document
.
location
.
href
=
"//google.pl"
;
flag
=
"AGH_{JuStGoogleIt}"
</script>
</head>
<body>
</body>
</html>
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