Reverse engineered prompt

I want a hands on learning project for heap exploitation in C, aimed at people doing pwn practice and CTF prep. Make it a collection of small, self contained demo programs that each show one heap trick clearly, with lots of comments explaining what is happening and why the allocator accepts it. Organize the examples by the libc version they work on, and make it easy to build and run the right demo against the right version without a bunch of setup pain.

Please include a simple way to try things locally, ideally with a container or helper script, and make debugging easy so I can step through each example in gdb. I also want a clean README that works like a study guide, with a short plain English description of each technique, what libc versions it applies to, whether it is patched in newer versions, and any useful challenge references. If you need details, look up current docs online, but keep the project focused on being educational and easy to experiment with.

Want more depth? Deep Reverse