Black Hat Python: Python Programming for Hackers and Pentesters

  • 2h 29m
  • Justin Seitz
  • No Starch Press
  • 2015

When it comes to creating powerful and effective hacking tools, Python is the language of choice for most security analysts. But just how does the magic happen?

In Black Hat Python, the latest from Justin Seitz (author of the best-selling Gray Hat Python), you'll explore the darker side of Python's capabilities—writing network sniffers, manipulating packets, infecting virtual machines, creating stealthy trojans, and more. You'll learn how to:

  • Create a trojan command-and-control using GitHub
  • Detect sandboxing and automate common malware tasks, like keylogging and screenshotting
  • Escalate Windows privileges with creative process control
  • Use offensive memory forensics tricks to retrieve password hashes and inject shellcode into a virtual machine
  • Extend the popular Burp Suite web-hacking tool
  • Abuse Windows COM automation to perform a man-in-the-browser attack
  • Exfiltrate data from a network most sneakily

Insider techniques and creative challenges throughout show you how to extend the hacks and how to write your own exploits.

When it comes to offensive security, your ability to create powerful tools on the fly is indispensable. Learn how in Black Hat Python.

About the Author

Justin Seitz is a Senior Security Researcher for Immunity, Inc., where he spends his time bug hunting, reverse engineering, writing exploits, and coding Python. He is the author of Gray Hat Python, the first book to cover the use of Python for security analysis.

In this Book

  • Setting Up Your Python Environment
  • The Network: Basics
  • The Net work: Raw Sockets and Sniffing
  • Owning the Net work with Scapy
  • Web Hackery
  • Extending Burp Proxy
  • GitHub Command and Con trol
  • Common Trojaning Tasks on Windows
  • Fun with Internet Explorer
  • Window s Privilege Escalation
  • Automating Offensive Forensics