SecurityTubeBeta
Watch ... Learn ... Contribute
securitytube home
programming videos
tools videos
basics videos
fun
divider
upload video on SecurityTube

Buffer Overflow Primer Part 7 (Exploiting a Program Demo)

 
 

Welcome to Part 7 of the Buffer Overflow Primer. If you have not already done so, please start this series by viewing Part 1. The Buffer Overflow Primer requires that you know at least some basic Assembly Language. I have created a series of Assembly Language video tutorials for Hackers here, for those not familiar with the language.

In this video we will do a buffer overflow exploitation demo using HackYou.c and ExploitMe.c . We will first execute HackYou.c to inject the shellcode into the environment variable EGG. Then, we will invoke ExploitMe.c with the $EGG input. This will cause the stack to be over written by the $EGG environment variable and plant our shellcode on the stack, and replace the RET address to point to our shellcode. Now, when main() returns, our shellcode is called. As expected the shellcode runs and spawns a shell :) It is important to note that in this video there are no protection mechanisms for the stack such as NX, ASLR etc. We will deal with how to exploit the stack in presence of these protections in later videos.





 

We hate these ADs as much as you do! Help us stay FREE and CLEAN by making a Generous Donation!

 
Related Videos from: Buffer Overflow Primer Series (2)
divider
You are Viewing this Video Now!
3118 views
3101 views
3301 views
2995 views

Author
Vivek-Ramachandran

Vivek Ramachandran is a security evangelist and has been working in computer security related fields for the past 7 years. In 2007, Vivek spoke at world renowned conferences Defcon (WEP Cloaking Exposed) and Toorcon (The Caffe Latte Attack). The discovery of the Caffe Latte Attack was covered by CBS5 news, BBC online, Network World etc news agencies.In 2006, Vivek was announced as one of winners of the Microsoft Security Shootout contest held in India among 65,000 participants. He has also been a recipient of a Team Achievement at Cisco Systems for his work on 802.1x and Port Security modules on the Catalyst 6500 switches. Currently he spends all of his time maintaining Security- Freak.Net , SecurityTube.Net and is the co-founder of Axonize. Vivek, is a Bachelor in Electronics and Communications Engineering from the prestigious Indian Institute of Technology, Guwahati.You can contact him at vivek[at]securitytube.net

 
©2007 Freak Labs