Post

2023 BYUCTF - Leet 2

  • Tag: Easy

Description

Just make 1337 (again)

1
nc byuctf.xyz 40001

Attached

1
2
3
4
5
6
7
8
9
10
import re

FLAG = open('flag.txt').read()

inp = input('> ')

if re.search(r'[123456789]', inp) or re.search(r'\(', inp) or eval(inp) != 1337:
    print('Nope')
else:
    print(FLAG)

Analyzation

We cannot use 123456789, and the open parenthese. Oh wait, the 0 digit has not been blocked!!!

Solution

Hexadecimal will work:

1
0xfed - 0xaaa - 0xa

The flag is:

1
byuctf{aaaaaaand_more_simple_bypasses_:)}
This post is licensed under CC BY 4.0 by the author.