
Gray Hat Python
Python Programming for Hackers and Reverse Engineers
Justin Seitz(Author)
No Starch Press
1st Edition
Published on 15. April 2009
Book
Paperback/Softback
XX, 190 pages
978-1-59327-192-3 (ISBN)
Description
Python is fast becoming the programming language of choice for hackers, reverse engineers, and software testers because it's easy to write quickly, and it has the low-level support and libraries that make hackers happy. But until now, there has been no real manual on how to use Python for a variety of hacking tasks. You had to dig through forum posts and man pages, endlessly tweaking your own code to get everything working. Not anymore.
Gray Hat Python explains the concepts behind hacking tools and techniques like debuggers, trojans, fuzzers, and emulators. But author Justin Seitz goes beyond theory, showing you how to harness existing Python-based security tools - and how to build your own when the pre-built ones won't cut it.
You'll learn how to:
- Automate tedious reversing and security tasks
- Design and program your own debugger
- Learn how to fuzz Windows drivers and create powerful fuzzers from scratch
- Have fun with code and library injection, soft and hard hooking techniques, and other software trickery
- Sniff secure traffic out of an encrypted web browser session
- Use PyDbg. Immunity Debugger Sulley, IDAPython, PyEmu, and more
The world's best hackers are using Python to do their handiwork. Shouldn't you?
Reviews / Votes
"I can recommend Gray Hat Python to all people who want to get an overview of hacking tools and hacking techniques that make use of Python. It is a no-nonsense book which follows a simple recipe: give a brief overview of a hacking technique and then dive straight into a real-world example."-The-Interweb.com
"A headfirst dive into the day-to-day coding all app pentesters end up doing."
-Thomas Ptacek
Gray Hat Python "succeeded in showing me with relative ease how a trained security researcher or determined hacker could use relatively straightforward Python scripts to infiltrate the most prevalent consumer operating system today."
-Dr. Dobb's CodeTalk
"Justin does a great job elaborating the code examples used throughout [Gray Hat Python]. . . Chapter 3 is just downright awesome."
-Carnal0wnage
Gray Hat Python "is a must for all people who deal with security on a technical level."
-Geek at Large
"This book was a joy to read."
-Kramses blog
Gray Hat Python "is really well-written and has a nice structure which is common among No Starch Press books; that is, more code less talk."
-Xorl.wordpress.com
"If you use python for your day-to-day scripting and perform some reverse engineering/debugging/fuzzing tasks, then this definitely a book that is bound to catch your attention."
-int 2Eh
"I recommend the book. . . It's a good book to help security engineers use python to begin analyzing software vulnerabilities. Primarily it's a book about using python to debug and to a lesser degree fuzz. It's a good insight into how Immunity does things and will help you look at CANVAS code a little easier. For that alone it's definitely worth buying."
-cyberwart
More details
Language
English
Place of publication
San Francisco
Germany
Target group
Professional and scholarly
- Penetration testers, reverse engineers, software testers, hackers, and application analysts looking to improve their efficiency
- Python programmers curious about security
Edition type
New edition
Product notice
Unsewn / adhesive bound
Dimensions
Height: 233 mm
Width: 177 mm
Thickness: 15 mm
Weight
373 gr
ISBN-13
978-1-59327-192-3 (9781593271923)
Schweitzer Classification
Other editions
Additional editions

E-Book
04/2009
No Starch Press
€34.99
Available for download
Person
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 Black Hat Python (No Starch Press).
Content
FOREWORDACKNOWLEDGMENTSINTRODUCTIONChapter 1: SETTING UP YOUR DEVELOPMENT ENVIRONMENTChapter 2: DEBUGGERS AND DEBUGGER DESIGNChapter 3: BUILDING A WINDOWS DEBUGGERChapter 4: PYDBG--A PURE PYTHON WINDOWS DEBUGGERChapter 5: IMMUNITY DEBUGGER--THE BEST OF BOTH WORLDSChapter 6: HOOKINGChapter 7: DLL AND CODE INJECTIONChapter 8: FUZZINGChapter 9: SULLEYChapter 10: FUZZING WINDOWS DRIVERSChapter 11: IDAPYTHON--SCRIPTING IDA PROChapter 12: PYEMU--THE SCRIPTABLE EMULATOR