assume
2024-08-08 20:37:52
# TJ-CTF-2024
assume for the sake of contradiction that pet the catloe
Here’s the sage source:
1 | import random |
If you take a look a the following section, you might notice something strange:
1 | for pos in range(len(target_str)): |
So, 50% of the time, it will print the byte of the flag at that position, and otherwise, it will print a capital letter. So… the flag is probably just the non-capital letter bytes in sequence?
The answer is yes. This is not a real crypto problem. Just go through the log.txt file and note the bytes that aren’t capital letters to get the flag:
tjctf{legendary_legendre0xd5109ab3}