2023 BYUCTF - Leet 1
- Tag: Easy
Description
Just make 1337
1 nc byuctf.xyz 40000
Attached
1
2
3
4
5
6
7
8
9
10
import re
FLAG = open('flag.txt').read()
inp = input('> ')
if re.search(r'\d', inp) or eval(inp) != 1337:
print('Nope')
else:
print(FLAG)
Analyzation
We cannot just input 1337
because re.search(r'\d', inp)
blocks numbers. But just number!
Solution
Use ascii code instead
1
ord(f'z') + ord(f'z') + ord(f'z') + ord(f'z') + ord(f'z') + ord(f'z') + ord(f'z') + ord(f'z') + ord(f'z') + ord(f'z') + ord(f'u')
And we got the flag:
1
byuctf{simple_bypasses!}
This post is licensed under CC BY 4.0 by the author.