TFCCTF 2022 - Code Leak Writeup
Challenge files HERE Details This is a challenge I created for TFCCTF 2022 and my intended solution. Description We managed to get access to the source code but we got disconnected before being able to download all of it. There has to be a way to get it… Solution If you play around with the application you’ll get a few prompts Enter your name: Bob What would you like to do? 1. Check balance 2. Work 3. Buy hint ($30) 4. Buy flag ($1337) 5. Exit >>> [INPUT] Shows your current balance Work and get money. You can only work 6 times and each time you get between $5 and $10 Prints a useless string for $30 Prints the flag if you have $1337 Exits After looking at main.py, one can see the lines ...