This is a whitepaper that was written for beginners learning how to write shellcode.
You can download it from the following link: https://packetstormsecurity.com/files/download/116171/Shellcoding_in_Linux.pdf
Source: https://packetstormsecurity.com/files/116171/Shellcoding-In-Linux.html