Gray Hat Python and over 1.5 million other books are available for Amazon Kindle . Learn more

Buy New

or
Sign in to turn on 1-Click ordering.
Buy Used
Used - Very Good See details
Price: £17.16

or
Sign in to turn on 1-Click ordering.
 
   
Trade in Yours
For a £11.57 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Sorry, this item is not available in
Image not available for
Colour:
Image not available

 
Start reading Gray Hat Python on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Gray Hat Python: Python Programming for Hackers and Reverse Engineers [Paperback]

Justin Seitz
3.6 out of 5 stars  See all reviews (5 customer reviews)
RRP: £31.49
Price: £24.56 & this item Delivered FREE in the UK with Super Saver Delivery. See details and conditions
You Save: £6.93 (22%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Only 3 left in stock (more on the way).
Dispatched from and sold by Amazon. Gift-wrap available.

Formats

Amazon Price New from Used from
Kindle Edition £20.88  
Paperback £24.56  
Amazon.co.uk Trade-In Store
Did you know you can trade in your old books for an Amazon.co.uk Gift Card to spend on the things you want? Visit the Books Trade-In Store for more details. Learn more.

Book Description

1 April 2009 1593271921 978-1593271923 1

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?


Frequently Bought Together

Gray Hat Python: Python Programming for Hackers and Reverse Engineers + Violent Python
Price For Both: £43.15

One of these items is dispatched sooner than the other.

Buy the selected items together
  • Violent Python £18.59


Product details

  • Paperback: 232 pages
  • Publisher: NO STARCH PRESS; 1 edition (1 April 2009)
  • Language: English
  • ISBN-10: 1593271921
  • ISBN-13: 978-1593271923
  • Product Dimensions: 18 x 2.3 x 23.6 cm
  • Average Customer Review: 3.6 out of 5 stars  See all reviews (5 customer reviews)
  • Amazon Bestsellers Rank: 197,632 in Books (See Top 100 in Books)
  • See Complete Table of Contents

More About the Author

Discover books, learn about writers, and more.

Product Description

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.


Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index | Back Cover
Search inside this book:

What Other Items Do Customers Buy After Viewing This Item?


Customer Reviews

3.6 out of 5 stars
3.6 out of 5 stars
Most Helpful Customer Reviews
5 of 5 people found the following review helpful
5.0 out of 5 stars The book for Windows bug hunters 23 Nov 2009
Format:Paperback
This book was a joy to read, but take notice of the reverse engineer part in the title.

Contents
The content of this book is a presentation of tools that use Python as part of their automation. The tools selected range from debuggers, fuzzers and onto emulators which can be driven using python. The book is laid out in 12 chapters which progress from setting up the environment to more advanced exercises.

The selection of tools is very good and the content fits together with lots of cross references.

Target audience
Focus for this book is running debugging tools automatically using python to do work for you. These features will allow you the reader the opportunity to go hunting for bugs more efficiently and with less manual work. With this in mind the target audience is not python beginners, though the programs shown are not very hard to follow. The real target audience are bug hunters and the ones that understand the issues, but are spending to much of their own time doing it.

If you are an absolute beginner in debugging I would recommend that you buy this book as a bundle with The Art of Hacking by Jon Erickson or perhaps The Shellcoders Handbook. If you have not experienced assembler ever you would probably also need an introduction to assembly programming.

Practical book
The structure of this book is very workbook-like and encourages you to run the many examples and experiment while doing them. Each one of the labs can also be performed in a short while allowing you to make use of short breaks from other stuff and do these.

The books does not have a lot of pages, but a lot of insight and the author clearly has great knowledge and experience in the reverse engineering arena. He also brings you up to speed by allowing you to start running the programs immediately, and while they run you can read the manuals how to do more advanced stuff by yourself later :-)

The techniques and methods described will also allow you to dive into programs that are not meant for debugging, because the author describes how to attack programs - while manuals typically tell you what options you have, but not the situations you should use those options.

To summarize the Good stuff:
Short - this book is short, so you can actually finish it
Practical - using the tools described you will be able to get started quickly, even if you really haven't learned about debuggers before
Very workbook like - making sure that you are always interested in trying out the examples
Cross references and references to material found on the internet makes this book indispensable

The Bad stuff about this book
I use mostly Unix and this book is mostly about hacking Windows, from applications down to Windows drivers. While I might not be the target audience, this focus has allowed the book to stay on track. I would have liked more about Unix systems, since Python is of course also used a lot in Unix.

Conclusion
This book has brought me through a lot of exercises, even if I didn't finish each and every one of them the first time. I will keep returning to this book to do more of the exercises and experiment more with Sulley and the other programs presented.

The book has persuaded me that I need to use more python and especially it has allowed be to go further with the debuggers I already know of. The level might not be suitable for the most advanced reverse engineers but for the rest of us it is a treasure of good information!

The matter is presented clearly and can be understood by almost anyone, even if they haven't really looked into debuggers before. The reason this book is so successful is partly because it does not repeat material from manuals for the tools, but require you to use existing tools with manuals and show you how to run them.

This book should be bundled with the Art of Hacking, showing you what hacking software is about and
this book show how to automate the hacking with python. I can highly recommend it for people that need to do reverse engineering and running of code through debuggers and emulators.
Comment | 
Was this review helpful to you?
16 of 20 people found the following review helpful
1.0 out of 5 stars Very disappointed 18 May 2009
Format:Paperback
First of all, it's not 232 pages, but 180 real pages. So be aware that the real content isn't that much.

The book presents some very easy examples, and totally lacks of explanations for the really interesting stuff. Many dumb examples are explained, but the hard tricks you download from the book's website you have to read them and try to understand them on your own.

12 pages dedicated to hooking, which is the reason I bought the book for but 16 pages dedicated to immunity debugger which you can download along with its manual. What's the point? I would have preferred 30 pages dedicated on hooking and a link to the debugger man which already explains how to work with it.

The code you download is buggy. After you correct the errors it works as expected, but it would have been nice to get a working code, since the book is based on that.

To sum up, I wouldn't recommend this book. Too much space wasted talking about easy things and only some pointers to the real interesting stuff. It's not worth it.

I'm very disappointed
Comment | 
Was this review helpful to you?
3 of 4 people found the following review helpful
5.0 out of 5 stars Excellent book 13 July 2009
By Nobody.
Format:Paperback
This is the best book I have bought so far this year.

You need to have a fairly good understanding of Python to be able to follow it - a sprinkling of knowledge about ctypes will help too - but once you finsih it you wil be using Python in ways you didnt think possible.

The book covers all sorts of advanced 'windows hacking' (for want of a better phrase) and general exploit development methods - DLL injection, code injection, debugging, fuzzing etc are all covered in a fairly decent amount of detail.

If you are looking to get familiar with ctyes and a few of the useful Windows API functions then via practical examples, this book servers as a great reference. I learnt more about ctypes with this book than I did reading the official tutorial.

Although the author works for immunity and mentiones immunity's debugger a lot, it does not come across as plugging the product (which is free anyway) and really helps the reader to use the debugger in a very effective way - the same for PyDBG too.

I'm very very pleased with the book - my only gripe is that it is quite a small book (180 pages) and it could explain some of the topics in slightly more detail - but this is only a very small gripe.

I would recommend this to anyone who has a decent knowledge of Python, Windows functions, buffer overflows etc and the general process of exploit development. If you are beginner in this area you will probably struggle to understand all the content.

I hope the author decides to write a similar book with a slightly broarder scope and more detail.
Comment | 
Was this review helpful to you?
Would you like to see more reviews about this item?
Were these reviews helpful?   Let us know
Most Recent Customer Reviews
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   
Related forums


Listmania!


Look for similar items by category


Feedback


Amazon.co.uk Privacy Statement Amazon.co.uk Delivery Information Amazon.co.uk Returns & Exchanges