*Hacking Exposed 6*
is a good foundation to learn the concept (fingerprinting, scanning, enumeration, exploiting, and evading)...but like the other guys said...if you want to craft your own exploits...you are going to have to learn a programming language, shellcode, etc.