// Comparison

Black Hat Python vs Hacking: The Art of Exploitation: Which Should You Read?

Two cybersecurity books on Offensive, compared honestly: who each is for, what each does best, and which to read first.

Intermediate
4/52021
Black Hat Python

Python Programming for Hackers and Pentesters

Justin Seitz, Tim Arnold

Justin Seitz and Tim Arnold's hands-on tour of writing offensive tooling in Python: network sniffers, web scrapers, GitHub-based command-and-control, screen capture, keylogging, and Volatility extensions.

Intermediate
5/52008
Hacking: The Art of Exploitation

Jon Erickson

A from-first-principles tour of low-level exploitation that still teaches the mindset two decades later.

Read this if

Working pentesters and red teamers who want to stop fighting other people's tools and start writing their own. The book that turns Python from a scripting language into an offensive multitool.
Self-taught hackers who want to understand what a stack overflow actually is, not just how to invoke msfconsole.

Skip this if

Beginners with no Python experience, or readers wanting a structured CS curriculum. Seitz and Arnold assume you can already program; the value is in offensive idioms, not language fundamentals.
Readers looking for modern exploitation (ASLR, CFI, browser sandboxes). The defenses Erickson covers are now baseline, not frontiers.

Key takeaways

  • Most operational tools you use can be replaced by ~50 lines of Python that do exactly what you need; the book is a series of working examples of that thesis.
  • The networking, web-scraping and process-injection chapters individually pay back the cost of the book once you've used the patterns three times.
  • The 2nd edition (Python 3, modern libraries) is the one to buy; the first edition's Python 2 code is dated.
  • Exploitation is a way of seeing programs, not a list of techniques.
  • Memory corruption is best learned with a debugger open beside the book.
  • The first half on C/assembly is worth the price even if you skip the exploits.

How they compare

We rate Hacking: The Art of Exploitation higher (5/5 against 4/5 for Black Hat Python). For most readers, that means Hacking: The Art of Exploitation is the primary pick and Black Hat Python is a useful follow-up.

Both books target intermediate-level readers, so the choice is about topic, not difficulty.

Black Hat Python and Hacking: The Art of Exploitation both cover Offensive, Networking, so reading them in sequence reinforces the same material from different angles.

Keep reading

Related topics