Protostar Stack Exploits (Solutions 0-3)
Buffer overflow exploit exercises, part one.
Published on 18 August 2012Overview
Protostar is a series of exercises from Exploit Exercises. In addition to three final levels, it has four basic sections: network programming, format strings, heap overflows, and stack overflows.
This series of posts contains solutions and walkthroughs for the stack overflow levels (“Stack”). It assumes basic knowledge of systems programming and is meant to serve as a reference for those stuck on certain levels.
This is the first of three posts for Stack. The first four levels are straightforward, and their corresponding posts contain little explanation (solutions). The last three levels have more potential pitfalls, and those posts contain more detailed explanations (walkthroughs).
Solutions
Stack: Level 0
Description (full): Overwrite a variable on the stack.
Stack: Level 1
Description (full): Overwrite a variable on the stack with a specific series of hex values.
Stack: Level 2
Description (full): Overwrite a variable by using an environmental variable.
Stack: Level 3
Description (full): Overwrite a function pointer.