working example
This commit is contained in:
1
exercises/144/inputs/input
Normal file
1
exercises/144/inputs/input
Normal file
@ -0,0 +1 @@
|
||||
cvpbPGS{arkg_gvzr_V'yy_gel_2_ebhaqf_bs_ebg13_uJdSftmh}
|
15
exercises/144/main.py
Normal file
15
exercises/144/main.py
Normal file
@ -0,0 +1,15 @@
|
||||
def rot13(message):
|
||||
alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
|
||||
subs = {char: alphabet[(i + 13) % 26] for i, char in enumerate(alphabet)}
|
||||
|
||||
return ''.join(list(map(
|
||||
lambda x: subs[x] if x in subs else x,
|
||||
message
|
||||
)))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
with open("./exercises/144/inputs/input") as file:
|
||||
input = file.read()
|
||||
|
||||
print(rot13(input))
|
6
exercises/147/info.nix
Normal file
6
exercises/147/info.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
name = "Obedient Cat";
|
||||
points = 5;
|
||||
url = "https://play.picoctf.org/practice/challenge/147";
|
||||
description = "This file has a flag in plain sight (aka \"in-the-clear\").";
|
||||
}
|
1
exercises/147/inputs/flag
Normal file
1
exercises/147/inputs/flag
Normal file
@ -0,0 +1 @@
|
||||
picoCTF{s4n1ty_v3r1f13d_4a2b35fd}
|
5
exercises/147/main.py
Normal file
5
exercises/147/main.py
Normal file
@ -0,0 +1,5 @@
|
||||
if __name__ == '__main__':
|
||||
with open('./exercises/147/inputs/flag') as file:
|
||||
input = file.read()
|
||||
|
||||
print(input)
|
Reference in New Issue
Block a user