In this project, you will implement a vulnerable C program which has a buffer overflow vulnerability. You will then demonstrate how you can win a game which is supposed to be unwinnable. You achieve this goal via exploiting the buffer overflow vulnerability.
We will determine you win the game if the program prints "You won!".
- You are not allowed to change the main function().
- You can change your_fcn() in whatever ways as you like, but you must exploit a buffer overflow vulnerability, as opposed to an integer overflow vulnerability.
- Your must use your seat number as your buffer size - this guarantees everyone's solution would be different.
- Hardcoding is okay.
This project is borrowed from University of Maryland (CMSC 414: Computer and Network Security), with some slight changes.