write-ups-challenges-2022-2023/hacking-the-cybernukes/SOLUTION.md

8 lines
641 B
Markdown
Raw Normal View History

2022-11-24 21:59:22 +00:00
## Difficulty
Medium 50 points. Participants will have to analyse the code carefully, understand how data is added to the stack and understand all the machine instructions.
## How To Solve
You need to buffer overflow using the password that you provide in order to overwrite the return address to point to the address that prints out the flag. A possible password that will do the trick is `password1`. Any password will suffice as long as it contains 8 arbitrary characters followed by a '1'. The ASCII value of 1 corresponds to the address you want to overwrite the return address with.
## Flag
IGCTF{H4veY0uTr!edTurn1ng!tOffAndOnAg4in?}