Leanpub Header

Skip to main content

Practical Hacking

Three hands-on books, one per tool: Wireshark to see the traffic, mitmproxy to intercept and change it, Metasploit to exploit what you find. 59 chapters of lab-based examples with cited sources, for a third of the price of buying them separately.

Bought separately

$87.00

$29.00

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

The following 3 books are included in this bundle...

These books have a total suggested price of $87.00. Get them now for only $29.00!
About

About

About the Bundle

Three tools cover most of what a hands-on security tester does with networks and targets. Wireshark shows you what crossed the wire. mitmproxy sits in the middle of HTTPS traffic and lets you change it. Metasploit turns a finding into a working exploit and shows what an attacker can do next. This bundle teaches all three, one practical book per tool.

Practical Wireshark (20 chapters) goes from your first capture to traffic forensics: where to put the sniffer, capture and display filters, tshark on the command line, TCP, DNS, HTTP/2 and HTTP/3, decrypting TLS and QUIC with session keys, Wi-Fi in monitor mode, spotting port scans and malware beacons, and automating analysis with tshark, pyshark and Lua dissectors. Every chapter ends with exercises, and an appendix gives worked answers.

Practical mitmproxy (20 chapters) covers mitmproxy 12: getting clients to trust its CA, filtering, modifying and replaying flows, writing Python addons, choosing between regular, transparent, reverse, upstream, SOCKS, WireGuard and local capture modes, intercepting Android and iOS apps past certificate pinning, and turning captures into repeatable API security tests.

Practical Metasploit (19 chapters) takes you from msfconsole basics and building a lab through scanning, payloads and msfvenom, Meterpreter, privilege escalation, pivoting, credentials and persistence, to writing your own auxiliary and exploit modules, automating with resource scripts, and the real limits of encoders and evasion.

The books are meant to be worked through at a keyboard. Examples run against lab captures and lab targets, and wherever a book shows output it cites where that output came from: a run in the book's lab, or the documentation or source it was taken from. Use these techniques only on systems you own or are explicitly authorized to test.

Researched and drafted with AI assistance by Ground Truth Books, then checked against each tool's documentation and source and the books' lab runs. Wireshark, mitmproxy and Metasploit are named descriptively; these books are not affiliated with or endorsed by the Wireshark Foundation, the mitmproxy project or Rapid7.

Books

About the Books

Practical Wireshark

Practical Wireshark

Most Wireshark books teach the interface. This one teaches you to answer questions with it.

Practical Wireshark starts where every investigation starts, with a capture that's too big and a complaint that's too vague, and works toward the packets that explain it. You'll learn where to put the sniffer so it actually sees the traffic, how to capture without drowning, and how to write display filters that find the one conversation that matters. From there the book moves through the protocols you meet every day (ARP, DHCP, DNS, TCP, HTTP/2 and HTTP/3, SIP and RTP), then into harder ground: decrypting TLS and QUIC with session keys, following a Wi-Fi join in monitor mode, and pinning a slow page load to a specific stage of the path.

The security chapters cover what an analyst actually looks for: port scans and how to tell their types apart, malware beacons and their timing, suspicious DNS, and credentials leaking in cleartext. The last part turns everything into automation with tshark one-liners, scheduled reports, Python with pyshark, and a Lua dissector for a protocol Wireshark has never seen.

The book is built on real captures. It works from a set of public sample captures, and where a chapter shows a tool's output from those files, the run is cited like any other source, so you can reproduce it on your own machine. Each of the 20 chapters ends with exercises, and an appendix gives a worked answer to every one, with the command to run.

What's inside

- 20 chapters in six parts, from first capture to traffic forensics

- 80 hands-on exercises with fully worked answers

- Display filter and capture filter quick reference

- Command-line toolkit reference for tshark, dumpcap, capinfos, editcap and mergecap

- Written for Wireshark 4.6, including its current filter semantics

Practical mitmproxy

Practical mitmproxy

Mastering mitmproxy 12 for Security Researchers, Mobile App Testers, and API Developers

mitmproxy sits between a client and a server and shows you every request and response, including HTTPS. Starting it is easy. Getting a phone, a container or a pinned app to send its traffic through it, and then doing something useful with that traffic, is where most people get stuck.

This book teaches mitmproxy 12 from first capture to automated API testing. Every example runs against the same small lab shop, an HTTPS API with a deliberate price-tampering bug and an IDOR, so the techniques build on each other:

  • Install mitmproxy, get clients to trust its CA, and read what the three frontends (mitmproxy, mitmweb, mitmdump) show you.
  • Find flows with filter expressions, then modify and replay them: modify_headers, modify_body, map_local, map_remote, client and server replay.
  • Write addons in Python: event hooks, options, commands and custom content views.
  • Pick the right mode for the client: regular, transparent, reverse, upstream, SOCKS, WireGuard and local capture.
  • Intercept Android and iOS apps, and get past certificate pinning with Frida and objection.
  • Handle HTTP/2, HTTP/3 and WebSockets, export flows as HAR, curl or OpenAPI, and turn captures into repeatable security tests.

No output in the book is invented or retyped. Each output block comes from a real mitmproxy 12.2.3 run in the lab, and every claim cites its source: the mitmproxy documentation, the v12.2.3 source code, or the captured run.

Researched and drafted with AI assistance by Ground Truth Books. The text was checked against the mitmproxy 12.2.3 documentation and source, and the code examples were run under mitmproxy 12.2.3. "mitmproxy" is used descriptively; this book is not affiliated with or endorsed by the mitmproxy project.

Practical Metasploit

Practical Metasploit

Mastering the Metasploit Framework from First Exploit to Advanced Post-Exploitation

Metasploit is the tool every penetration tester reaches for, and the one most people only half understand. They click through msfconsole, fire a canned exploit, and stop there. This book takes you the rest of the way.

Over nineteen lab-driven chapters you build a purpose-made attack lab, then work through the framework the way a serious operator does: service discovery with db_nmap and auxiliary scanners, payload theory and msfvenom generation, exploitation and session handling, and full Meterpreter mastery — process migration, privilege escalation, pivoting, and tunneling through compromised hosts. From there you move into post-exploitation: credential harvesting, persistence, and lateral movement across SMB, WinRM, and SSH.

The second half is where most books stop and this one keeps going. You write your own auxiliary, scanner, and post modules in Ruby, build a working exploit against a patched CVE, call the Windows API through Railgun, and automate engagements with resource scripts. A closing section covers what encoders and evasion can and can't do, and how to keep your modules alive against the framework's release and deprecation cadence.

Every chapter escalates. You start by running exploits and finish by writing them. If you know your way around a terminal and want to treat Metasploit as something you extend rather than something you click, this is the book.

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub