WCU / Cybersecurity
~/CSC 471/Class 03
CSC 471 · Class 03

The Stack and Stack Frames

21 knowledge points. Work through them in order, or jump to any topic.

//

Knowledge Points

01What is the Stack? 02Memory Layout: Where the Stack Lives 03push and pop: How RSP Changes 04Step by Step: Pushing Two Values 05The call / ret Mechanism 06call / ret Visualized 07Anatomy of a Stack Frame 08Prologue and Epilogue 09Frame Layout Relative to RBP 10A Concrete C Function 11...and its Disassembly 12Passing Arguments (Recap) 13Two Nested Frames: main -> helper 14Following the Saved-RBP Chain 15Why This Matters for Malware Analysis 16Why This Matters for Exploitation (Preview) 17Reading the Frame Live in GDB 18Dumping Raw Stack Memory 19Tie-in to Lab 2 20Summary 21Next Class