Hacking-the-art-of-exploitation.pdf Link
"Hacking: The Art of Exploitation" (2nd Edition) by Jon Erickson is a foundational text focused on low-level fundamentals, including C programming, assembly, and memory management. It emphasizes understanding the mechanics of exploitation over using pre-built tools, though some examples are dated due to modern OS defenses. You can find more details at No Starch Press.