Understand Heap Memory layout with pwndbg
summary
Explains concrete heap internals by running a C program that calls malloc and free, using pwndbg inside GDB to display heap chunks and metadata; shows live commands like viewing tcache and unsorted bins, stepping to breakpoints and reading chunk headers. Demonstrates corrupting a size field to create overlapping allocations and observes pointer/size changes in memory, with the demo successfully reproducing the overlap and clarifying why allocator choices (tcache vs fastbin) change exploitation paths.
AI-written summary · about
chapters (5)
- 0:00Introduction to talk
- 1:09Dynamic memory allocation basics
- 12:24Heap memory layout overview
- 22:08Pwndbg memory inspection demo
- 30:50Q&A and closing remarks
related talks
44mDebugging memory corruptions in C++
22mDemostrating Binary Exploitation
01h 00mIntroduction to memory exploitation
37mHeap Layout Optimisation for Exploitation
42mWindows 10 Segment Heap Internals
37mHouse of Einherjar — Yet Another Heap Exploitation Technique on GLIBC
32mPoking Holes in Information Hiding
22mHeapHopper: Bringing Bounded Model Checking to Heap Implementation Security
