Description

Book Synopsis
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 comèmon 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 th

Trade Review
“Black Hat Python is a fun read written by experts with years of experience who are willing to share the secrets they have learned along the way. While It might not immediately turn you into a super stunt hacker like me, it will certainly get you started down the correct path.” (from the foreword)
—Charlie Miller, Security Researcher

"This book breaks down how to create powerful tools using Python like network sniffers or keyloggers. This book even goes over how to escalate privileges in Windows."
—Davin Jackson, Alpha Cyber Security, Books to Start Your Penetration Testing Journey

"An essential resource for anyone involved in offensive security or looking to improve their Python programming skills. Its comprehensive coverage, practical examples, and step-by-step instructions make it an invaluable tool for anyone looking to become a skilled hacker or penetration tester."
—InfoSecNoobs.com

Praise for the first edition of Black Hat Python

"Another incredible Python book. With a minor tweak or two many of these programs will have at least a ten year shelf life, and that is rare for a security book."
—Stephen Northcutt, founding president of the SANS Technology Institute

"A great book using Python for offensive security purposes."
—Andrew Case, Volatility core developer and coauthor of The Art of Memory Forensics

"If you truly have a hacker’s mindset, a spark is all you need to make it your own and do something even more amazing. Justin Seitz offers plenty of sparks."
—Ethical Hacker

"Whether you're interested in becoming a serious hacker/penetration tester or just want to know how they work, this book is one you need to read. Intense, technically sound, and eye-opening."
—Sandra Henry-Stocker, IT World

"Definitely a recommended read for the technical security professional with some basic previous exposure to Python."
—Richard Austin, IEEE Cipher

"A well-written book that will put you on track to being able to write powerful and potentially scary tools. It’s up to you to use them for good."
—Steve Mansfield-Devine, editor of Elsevier's Network Security Newsletter

"A well implemented read with lots of good ideas for fun offensive Python projects. So enjoy, and don't forget it's all about the code!"
—Dan Borges, LockBoxx

"A useful eye-opener."
—MagPi Magazine

"If you work as a computer security professional and want to code in Python, this is definitely a book that belongs on your bookshelf."
—Craig Mullins, Data and Technology Today

Table of Contents
Preface
Chapter 1: Setting up Your Python Environment
Chapter 2: Basic Networking Tools
Chapter 3: Writing a Sniffer
Chapter 4: Owning the Network with Scapy
Chapter 5: Web Hackery
Chapter 6: Extending Burp Proxy
Chapter 7: GitHub Command and Control
Chapter 8: Common Trojaning Tasks on Windows
Chapter 9: Fun with Internet Explorer
Chapter 10: Windows Privilege Escalation
Chapter 11: Automating Offensive Forensics
Index

Black Hat Python, 2nd Edition: Python Programming

    Product form

    £32.24

    Includes FREE delivery

    RRP £42.99 – you save £10.75 (25%)

    Order before 4pm today for delivery by Wed 1 Jul 2026.

    A Paperback / softback by Justin Seitz, Tim Arnold

    3 in stock

      Trusted by thousands of customers. See 2,385+ Customer Reviews

      View other formats and editions of Black Hat Python, 2nd Edition: Python Programming by Justin Seitz

      Publisher: No Starch Press,US
      Publication Date: 14/04/2021
      ISBN13: 9781718501126, 978-1718501126
      ISBN10: 1718501129

      Description

      Book Synopsis
      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 comèmon 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 th

      Trade Review
      “Black Hat Python is a fun read written by experts with years of experience who are willing to share the secrets they have learned along the way. While It might not immediately turn you into a super stunt hacker like me, it will certainly get you started down the correct path.” (from the foreword)
      —Charlie Miller, Security Researcher

      "This book breaks down how to create powerful tools using Python like network sniffers or keyloggers. This book even goes over how to escalate privileges in Windows."
      —Davin Jackson, Alpha Cyber Security, Books to Start Your Penetration Testing Journey

      "An essential resource for anyone involved in offensive security or looking to improve their Python programming skills. Its comprehensive coverage, practical examples, and step-by-step instructions make it an invaluable tool for anyone looking to become a skilled hacker or penetration tester."
      —InfoSecNoobs.com

      Praise for the first edition of Black Hat Python

      "Another incredible Python book. With a minor tweak or two many of these programs will have at least a ten year shelf life, and that is rare for a security book."
      —Stephen Northcutt, founding president of the SANS Technology Institute

      "A great book using Python for offensive security purposes."
      —Andrew Case, Volatility core developer and coauthor of The Art of Memory Forensics

      "If you truly have a hacker’s mindset, a spark is all you need to make it your own and do something even more amazing. Justin Seitz offers plenty of sparks."
      —Ethical Hacker

      "Whether you're interested in becoming a serious hacker/penetration tester or just want to know how they work, this book is one you need to read. Intense, technically sound, and eye-opening."
      —Sandra Henry-Stocker, IT World

      "Definitely a recommended read for the technical security professional with some basic previous exposure to Python."
      —Richard Austin, IEEE Cipher

      "A well-written book that will put you on track to being able to write powerful and potentially scary tools. It’s up to you to use them for good."
      —Steve Mansfield-Devine, editor of Elsevier's Network Security Newsletter

      "A well implemented read with lots of good ideas for fun offensive Python projects. So enjoy, and don't forget it's all about the code!"
      —Dan Borges, LockBoxx

      "A useful eye-opener."
      —MagPi Magazine

      "If you work as a computer security professional and want to code in Python, this is definitely a book that belongs on your bookshelf."
      —Craig Mullins, Data and Technology Today

      Table of Contents
      Preface
      Chapter 1: Setting up Your Python Environment
      Chapter 2: Basic Networking Tools
      Chapter 3: Writing a Sniffer
      Chapter 4: Owning the Network with Scapy
      Chapter 5: Web Hackery
      Chapter 6: Extending Burp Proxy
      Chapter 7: GitHub Command and Control
      Chapter 8: Common Trojaning Tasks on Windows
      Chapter 9: Fun with Internet Explorer
      Chapter 10: Windows Privilege Escalation
      Chapter 11: Automating Offensive Forensics
      Index

      Recently viewed products

      © 2026 Book Curl

        • American Express
        • Apple Pay
        • Diners Club
        • Discover
        • Google Pay
        • Maestro
        • Mastercard
        • PayPal
        • Shop Pay
        • Union Pay
        • Visa

        Login

        Forgot your password?

        Don't have an account yet?
        Create account