Exercises
Practice on exercises at https://intra.forge.epita.fr/
Please try to understand the code of the exercise first, and do it by yourself.
When you are really blocked, then check the hints.
Finally, if you still cannot do the exercise, ask the teacher.
Harder exercises
Leak
Hints 🗺
Hint 1
Have you checked the binary security settings ?
Hint 2
What can you do with the provided address ?
Env
Hints 🗺
Hint 1
The address of your buffer will change.
Hint 2
man getenvHint 3
What can you do with the provided address ?
Hint 4
How to set an environment variable using pwntools ? Check the doc
Bad
Hints 🗺
Hint 1
Why 0xb ?
Hint 2
Do you understand your shellcode ?
Hint 3
At what character does your shellcode break ? Why ?
Hint 4
How to replace the bad characters in the shellcode ?
Limited space
Hints 🗺
Hint 1
No, the generated shellcode will not fit in. Check this.