Read this book, it's basically only hacking C code with assembly. http://www.amazon.com/Hacking-The-Art-Exploitation-Edition/d...
It also covers topics such as TCP sockets and the likes. If you ever want to become a real hacker it's your best starting point.