Get the Whitepaper called Writing Simple Buffer Overflow Exploits.
You can download it from the following link: https://packetstormsecurity.com/files/download/97078/Writing_Simple_Buffer_Overflow_Exploits.pdf
Source: https://packetstormsecurity.com/files/97078/Writing-Simple-Buffer-Overflow-Exploits.html

