DMOJ Capture The Flag '20 B3 - Classic Buffer Overflow
View as PDFClassic buffer overflow, should be easy, right? To make this even easier, we're printing the address of the function you're supposed to call.
main.c 92fac8a216a9eaea750db9266d485793 806B
main 98972d672b0bcd184c0c6769bb083863 15K
Note that the compiled binary is outdated and may have different behaviour than the updated main.c file.
The judge will run main.c. You must interact with the judge with a solution through the standard input and output streams. Anything the judge outputs will be in your standard input stream, and anything you output to standard output will be forwarded to the judge as input. If your solution successfully causes the judge to print the flag to its standard error stream, you will receive AC. Otherwise, you will receive WA. Note that at no point during the judging will your program receive the flag. Additionally, the judge does not need to exit with an exit code of 0. It can exit with anything.
This problem is from DMOJ Capture The Flag '20. For more details, please view the contest page.
Comments