Lab: Stack Overflow

Short Description

The purpose of this lab is to introduce you to a practical example of stack overflow. This lab is based on Buffer-Overflow Attack Lab from Dr. Du's SEED labs. We will only be doing part of this lab.

Full code for the entire lab is located in the Buffer directory.

Goals

The goals of this lab are to help you

The Lab

  1. Setup
  2. Malicious Code
  3. Exploitable Code
  4. editors, we need one now.
  5. Some Python
  6. Build the input string.
  7. You should now be able to run stack-L1 and get a root shell.
  8. stack-L2