In this video, I demonstrate the mechanics of a classic C stack overflow vulnerability. We go beyond just crashing the program—we open up the debugger (x64dbg) to see exactly how the stack is overwritten and how that allows for code execution.
We cover:
1 - The Vulnerable C Code
2 - Compiling
3 - Triggering the Overflow
4 - Debugging: The "Magic Moment" inside memory
5 - The Crash: The Access Violation exception
6, Controlled Crash: Overwriting the instruction pointer (EIP/RIP) to run secret code
Tools used:
1 - C/C++ Compiler - Visual Studio Code
2 - x64dbg
4 - Windows Terminal
#CyberSecurity #ExploitDevelopment #ReverseEngineering #BufferOverflow #Programming #infosec