REVIEW

Book Review: Gray Hat Python

June 14, 2009
Ganadeva Bandyopadhyay

With python being a language of choice for hackers and reverse engineers, Gray Hat Python gives an insight into using the python programming language and pre-built python tools within its covers ,saving time and effort looking on the web.

While the installation methods for Python and its tools are shown in the early chapter for both Linux and windows OS, the rest of the book uses more of Python on windows OS. There is a exclusive chapter devoted to the theory behind building a windows debugger in Python before going to discussing about PyDbg and Immunity debuggers.

Examples of usage of techniques such as soft and hard hooking,dll and code injection and fuzzing are explained in simple ways. After discussing the basics of fuzzing and the sulley fuzzing framework, Immunity debugger is used to demonstrate windows driver fuzzing. One of the important tips from the book is to do the fuzzing demonstrations or experimentation on virtual machines so the appearance of the “blue screen of death” is not a significant issue.

One of the last topics of discussion revolves around using Ida Python in the disassembler IDA Pro 5.2 with examples of scripts. The book ends with description and usage of PyEmu- a pure Python IA32 emulator that allows a developer to use Python to drive CPU emulation tasks.

This sums up the review of this concise book of barely 190 pages covering usage of python for reverse engineering and hacking. With a bare-bones approach for the topic, the book does enough to get the interested novice up to a decent level of expertise. There is also lot of information useful for the advanced professionals looking for some fresh approach. The interested readers would do well to have sound theoretical concepts to put the tips and examples in this book to good use.

In search of truth View Ganadeva Bandyopadhyay's profile on LinkedIn
eXTReMe Tracker
Keep reading for comments on this article and add some feedback of your own!

Comments! Feedback! Speak and be heard!

Comment on this article or leave feedback for the author

#1
Slime
URL
June 16, 2009
04:37 PM

How much does the book cost and is it available on bangalore shelves.

IDA Pro 5.2 /PyEmu/ fuzzying windows wow

i have been laid off for quite sometime and had no experience in web software or java. I tried python and it is very satisfying to even work.

for free knowledge on web, i am reading now a nice piece which takes time to understand , but refreshing.

http://www.diveintopython.org/download/diveintopython-pdf-5.4.zip

I recommend it as a starting point for fresher like me after refreshers.

#2
Ganadeva Bandyopadhyay
URL
June 21, 2009
07:02 AM

Not having much idea about book-shops in Bangalore. As of date, there are copies available on online bookstores @1.6k INR odd.

The url you suggested looks good as an introductory text for Python.

Add your comment



Personal attacks are not allowed. Please read our comment policy.






Remember Name/URL?

Please preview your comment!