Account
Computer Science & Technology

Hacking

How Real Exploits Work, From Programming to Shellcode

Hacking: The Art of Exploitation, 2nd Edition teaches how exploits really work — from C and assembly to shellcode and countermeasures.

  • 492pages
  • 8chapters
  • 2ndedition

This book is for you if you are

  • This book is for you if you are a programmer who wants to understand memory corruption from the ground up.
  • This book is for you if you are a security student or self-taught practitioner moving past tool-based tutorials.
  • This book is for you if you are a developer who needs to reason about how your own code can be attacked.

Why this book

Hacking: The Art of Exploitation by Jon Erickson teaches how exploits actually work at the level of memory, registers and bytes, not just which tool to run. Published by No Starch Press in this 2nd Edition (2008), it walks from C programming and assembly through exploitation, networking, shellcode, countermeasures and cryptology. It remains one of the few books that treats hacking as a science you can reason about rather than a list of tricks to memorize.

Most pages that discuss this book stop at a summary or a scanned link. This edition is the full working text: buffer overflows explained with the stack layout in front of you, format string bugs built step by step, and shellcode written rather than copy-pasted. Erickson assumes you will open a debugger and follow along, which is why the material holds up years after publication. The chapters build in dependency order — you cannot skip programming and still understand exploitation.

  • Explains memory corruption from the ground up, including stack and heap overflows
  • Connects C and assembly to the exploit code that abuses them
  • Covers networking basics that matter for remote attacks
  • Includes a dedicated countermeasures chapter so you understand defenses, not just attacks
  • Treats cryptology as part of the attacker's toolkit, with practical examples

This book suits programmers, security students and self-taught practitioners who want to understand why an exploit works instead of running someone else's script. If you have ever read a CVE write-up and wanted the underlying mechanics, this is the edition to work through. Get your copy today.

What you'll learn

  • Read C and assembly well enough to trace what a program does in memory
  • Explain how stack and heap overflows occur and how they are triggered
  • Identify and exploit format string vulnerabilities step by step
  • Write your own shellcode instead of copying existing payloads
  • Apply networking fundamentals to understand remote attack paths
  • Evaluate countermeasures and why certain defenses block specific attacks
  • Use cryptology concepts as part of an attacker's working toolkit

Not the right book for: readers who want a tool-by-tool penetration testing walkthrough with no programming

Questions about this book

Do I need to know C before reading Hacking: The Art of Exploitation?

Yes, basic C is assumed and the programming chapter builds from there. Readers without any C background should study it first, since exploitation chapters depend on it.

How does this book explain buffer overflows?

It shows the stack layout and register state directly, then walks through overwriting memory with a debugger in view. You follow the mechanics rather than reading a description of them.

What does the shellcode chapter cover?

It covers writing and assembling your own shellcode, including how payloads are structured and injected. The focus is on building it yourself rather than reusing existing strings.

Is cryptology covered in this book?

Yes, a dedicated cryptology chapter treats encryption and related topics as practical parts of an attacker's toolkit. It is applied material, not abstract theory.

Why does the book include a countermeasures chapter?

Because understanding defenses sharpens your grasp of the attacks they block. It explains why specific protections work against particular exploit classes.

Can I get it in another format?

Yes. You get the PDF right away. Need EPUB, Kindle, Word or any other format? Email support@ebooksonline.si with your order number and we send it.

Does it work on Kindle?

Yes. Email support@ebooksonline.si with your order number and we send you a Kindle-ready file.

How many times can I download it?

As many times as you like. Sign in to your account and download it again at any time.

What if the file does not work?

Contact us with your order number and we will fix it or refund you.

Contents

  1. 1Introductionp. 1
  2. 2Programmingp. 5
  3. 3Exploitationp. 115
  4. 4Networkingp. 195
  5. 5Shellcodep. 281
  6. 6Countermeasuresp. 319
  7. 7Cryptologyp. 393
  8. 8Conclusionp. 451

Details

Author
Jon Erickson
Publisher
No Starch Press
Edition
2nd edition, 2008
ISBN
9781593271442
Pages
492
Language
English
Formats
PDF (EPUB, Kindle or any other format on request)
File size
6.81 MB
Licence
Personal use, keep forever

Jon Erickson

Jon Erickson wrote Hacking: The Art of Exploitation, published by No Starch Press.

Buy with confidence

If your file does not open or download, we fix it or refund you. Read the refund policy.

More in Computer Science & Technology

See all

Data Science on AWS

Chris Fregly and Antje Barth

PDF · 524 pages

$14.99 Regular price $64.99 −77%

You save $50.00

Add to cart
Cover of 10-Minute Focus by Daniel Walter

Get a free ebook

Join the list and get 10-Minute Focus free, plus a short note when new books arrive.

Your cart

No products in the cart.

Subjects

More

Look inside

Sample