f-viktor@github.io%

Task - 2: register.c

Before going trying the tasks, please read this, it will help a lot.

Sidenote: The tasks are all compiled with emscripten, which takes input in a popup window before the task starts. After sending in your input, it will pop up again until you press cancel. To use it correctly, you’ll need to enter your input in the first popup, and cancel the second one.

Your task here is to change the isAdmin parameter from false to true when it is printed.

Open Task - 2 register.c

Hint 1 Do you know the difference between a stack-based buffer overflow, and a stack overflow?
Hint 2 In web assembly, there is no write protected memory space, not even constant strings are safe.
Hint 3 Repeat the recursion until the stack is over the constant data region, then overwrite the constant strings stored there.