Stack Smashing

One of the simplest exploits to understand is the classic technique of overflowing a stack frame.

How It Works

Now that you know all about the C calling convention, and mixing C and assembly language, and putting machine code into C strings that can executed, you're ready to learn about the fabulous world of buffer overflows in Smashing The Stack for Fun and Profit.

Can I do this?

Maybe, on an old system. Read the Wikipedia article on stack smashing. You'll see a lot of techniques that systems use to make a successful attack unlikely these days.