Buy new:
-20% $39.90
FREE delivery Saturday, May 25
Ships from: Amazon.com
Sold by: Amazon.com
$39.90 with 20 percent savings
List Price: $49.95

The List Price is the suggested retail price of a new product as provided by a manufacturer, supplier, or seller. Except for books, Amazon will display a List Price if the product was purchased by customers on Amazon or offered by other retailers at or above the List Price in at least the past 90 days. List prices may not necessarily reflect the product's prevailing market price.
Learn more
FREE Returns
FREE delivery Saturday, May 25. Order within 1 hr 57 mins
In Stock
$$39.90 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$39.90
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Ships from
Amazon.com
Ships from
Amazon.com
Sold by
Amazon.com
Sold by
Amazon.com
Returns
30-day easy returns
30-day easy returns
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Returns
30-day easy returns
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Payment
Secure transaction
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
$24.07
Get Fast, Free Shipping with Amazon Prime FREE Returns
Very Good Condition! Cover may have light wear, pages in very good condition and binding is sturdy; may have other light shelf wear or creases. May have minimal notes or highlighting. Very Good Condition! Cover may have light wear, pages in very good condition and binding is sturdy; may have other light shelf wear or creases. May have minimal notes or highlighting. See less
FREE delivery Saturday, May 25 on orders shipped by Amazon over $35. Order within 1 hr 57 mins
Only 2 left in stock - order soon.
$$39.90 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$39.90
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

Something went wrong. Please try your request again later.

Violent Python: A Cookbook for Hackers, Forensic Analysts, Penetration Testers and Security Engineers 1st Edition

4.5 4.5 out of 5 stars 408 ratings

{"desktop_buybox_group_1":[{"displayPrice":"$39.90","priceAmount":39.90,"currencySymbol":"$","integerValue":"39","decimalSeparator":".","fractionalValue":"90","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"AyiTT5eoWncNHcWIgfH4%2FNpxpg4mlZOZ67AIGAixosd1rRqWpfeoIVVVMP%2BqSH4FYJ31NLvG7mlqBiG%2FvzjzGhikJ0Xg6578zINjvHER4%2BN%2F7fW4m8MeheI00Ir%2BuY%2BkAb6dO%2BSoV8wNT%2FIsoT071w%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$24.07","priceAmount":24.07,"currencySymbol":"$","integerValue":"24","decimalSeparator":".","fractionalValue":"07","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"AyiTT5eoWncNHcWIgfH4%2FNpxpg4mlZOZ5obuJLc0alxCXU35rQ6YfZRRDSkFHVRHlzW5cILHH20tG81o9fKr1kx0MN76NPpYJsZCGFNEACIJmIuwXjHUntjmxo0eXWYSxWvYMSPIT0k3zSaanLRzTveRZLXqbhKV58tfORv8s6%2FtwqdLiM%2FcDlSu8VN1OQ3c","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons

Violent Python shows you how to move from a theoretical understanding of offensive computing concepts to a practical implementation. Instead of relying on another attacker’s tools, this book will teach you to forge your own weapons using the Python programming language. This book demonstrates how to write Python scripts to automate large-scale network attacks, extract metadata, and investigate forensic artifacts. It also shows how to write code to intercept and analyze network traffic using Python, craft and spoof wireless frames to attack wireless and Bluetooth devices, and how to data-mine popular social media websites and evade modern anti-virus.

  • Demonstrates how to write Python scripts to automate large-scale network attacks, extract metadata, and investigate forensic artifacts
  • Write code to intercept and analyze network traffic using Python. Craft and spoof wireless frames to attack wireless and Bluetooth devices
  • Data-mine popular social media websites and evade modern anti-virus
Read more Read less

Amazon First Reads | Editors' picks at exclusive prices

Frequently bought together

$39.90
Get it as soon as Saturday, May 25
In Stock
Ships from and sold by Amazon.com.
+
$26.58
Get it as soon as Saturday, May 25
In Stock
Ships from and sold by Amazon.com.
+
$32.46
Get it as soon as Saturday, May 25
In Stock
Ships from and sold by Amazon.com.
Total price:
To see our price, add these items to your cart.
Details
Added to Cart
Choose items to buy together.

Editorial Reviews

Review

"An information security specialist with the US Army, O'Connor introduces the hacker's programming language Python to new users, and describes some advanced features to those who already know it." --Reference and Research Book News, August 2013

"A quick glance at [the authors] collective credentials and experience undoubtedly creates high expectations for this title… The end result is that the book demonstrates how powerful just a few dozen lines of Python code can be… useful tips and tricks will surely be acquired simply by working through the exercises." --The Ethical Hacker Network, February 2013

"Violent Python is an excellent resource that develops and enhances a diverse set of security-related Python skills. The book also serves as a great reference, where recipes could be quickly implemented to address specific issues as they arise. Readers who are actively working in an InfoSec position will likely be able to put their newly acquired skills to use immediately, and those looking to break into the field will acquire skills that differentiate themselves from others who are dependent on prebuilt tools. This title is highly recommended for anyone who wants to improve his or her Python skills within the InfoSec realm." --The Ethical Hacker Network, February 2013

"When it comes to Python and penetration testing, TJ O'Connor is the grand Python master. This is the book that keeps on giving. From building penetration testing Python scripts, to antivirus-evading penetration testing malware, to interrogating the Windows Registry and investigating other forensic artifacts...O'Connor masterfully walks the reader from basic to advanced penetration testing techniques with sample code throughout." --Ove Carroll, SANS Certified Instructor, Co-Author of SANS Forensics 408 - Windows In Depth

"Violent Python is chalked full of practical examples and is for all security professionals. It covers the spectrum - knowledge for pen testers to forensic analysts, beginner to advanced and offensive to defensive tasks. If you are involved in information security and are looking for a Python book, this is an excellent source." --James Shewmaker, Security Analyst, Bluenotch Corporation

"The best hackers know when to write their own tools. Violent Python is a very relevant collection of examples to seed your personal hacking toolbox. From offensive actions to digital forensics, this book has useful bits for everyone." --Raphael Mudge, Creator of Armitage

Review

Discover how to use Python to exploit systems and build effective pen testing tools to defend your system from attackers

Product details

  • ASIN ‏ : ‎ 1597499579
  • Publisher ‏ : ‎ Syngress; 1st edition (November 22, 2012)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 288 pages
  • ISBN-10 ‏ : ‎ 9781597499576
  • ISBN-13 ‏ : ‎ 978-1597499576
  • Item Weight ‏ : ‎ 1.1 pounds
  • Dimensions ‏ : ‎ 5.51 x 0.59 x 8.66 inches
  • Customer Reviews:
    4.5 4.5 out of 5 stars 408 ratings

About the author

Follow authors to get new release updates, plus improved recommendations.
T. J. O'Connor
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Discover more of the author’s books, see similar authors, read author blogs and more

Customer reviews

4.5 out of 5 stars
4.5 out of 5
408 global ratings
Don't get the Kindle edition
1 Star
Don't get the Kindle edition
The Kindle edition has so many font and layout issues which renders the content mostly useless.See attached sample.
Thank you for your feedback
Sorry, there was an error
Sorry we couldn't load the review

Top reviews from the United States

Reviewed in the United States on November 27, 2012
Took a quick flick through to get an idea of the content and went back to cover the parts I am interested in.

Although the book does cover some Python basics very well and steps through the install of both Python and packages used throughout the book, explaining why and where each one is needed I am not sure I would recommend the book to beginners and I do not think that is the target audience. If however you understand some programming basics and want to get into writing your own tools in Python this book will give you some of the most concise and well documented examples I have seen. Providing not just instructions on what you need to do but (more importantly) why you would want to do it. It provides the base scripts and the understanding leaving it up to the reader to take the script and expand on it as needed, an approach I like.

The writing style is clear and easy to follow, I am working my way back through the sections on packet capture using the nmap libraries getting a lot of info as I go along. Without a doubt one of the best book purchases I have made and I would seriously recommend it to someone looking to write their own tools or to just get an understanding of Python hacking.
5 people found this helpful
Report
Reviewed in the United States on June 13, 2023
While this book could certainly use an update, it's a useful reference to base projects on. I would love to see a modern spin on it.
Reviewed in the United States on October 9, 2014
My hosting provider, and my own servers, have py, but that doesn't mean you have access to the libraries mentioned in this fine little book! It attempts to be both an introduction to Python and an intro to some sploits and some forensics. It does a good job if you're into either, and just now starting to learn some of your own Python coding.

The "hot book" on Python Forensics right now is Hosmer-- 
Python Forensics: A workbench for inventing and sharing digital forensic technology -- much more detailed, more expensive, more recent, and a much tighter focus on forensics than the broader brush of this book, which includes some pen development. Elesevier always gives their text web resources in the format elsevierdirect dot com forward slash companion then the isbn. This book's code is not as error filled as some earlier reviews said, so I'm guessing that it has been updated and corrected. Again, you'll need library access, and the code isn't as well annotated as Hosmer or Ligh's fine and classic  Malware Analyst's Cookbook and DVD: Tools and Techniques for Fighting Malicious Code , but remember it is pure Python, which will help both introduce and fill in some blanks in both Ligh and Hosmer.

By the way, Ligh also has a new, wonderful book out on forensics: 
The Art of Memory Forensics: Detecting Malware and Threats in Windows, Linux, and Mac Memory , and of course Ligh uses Python in all his books, blogs and articles as the "behind the scenes" create your own resource. I'm also a developer and contribute to zsand dot com's sandboxes, and one thing this book is missing that you'll find in both Ligh and Hosmer, are COMBINATIONS of sploit software that let you customize or see things like little python windows adding elements to the bigger API. An example would be embedding any PE (dll/exe etc.) in a "harmless" looking extension like .pdf, a network update or even a non-kernel/root looking extension like a screen tip or update.

Speaking of, since the authors of this book are all military, the upside is seeing how that world thinks (worked in it for some years), but the downside is their "courtesy." For example, they will say that the problem with a Google sploit is that it "requires a developer id which compromises anonymity" but completely ignores how easy it is to buy, hack, borrow or get those credentials, ids and codes anonymously online. This doesn't have to be black, it can even be for your own honeypot or a follow up on an attack where you don't want your developer id revealed even if you do have you own!

Highly recommended for beginners and those with access to py libraries. The caveat is that the freeware and GNU libraries out there are not enough, although they are much better than they were when this text was written, and Hosmer also shows you how to go direct instead of relying on libraries when you can't get them.
8 people found this helpful
Report
Reviewed in the United States on December 26, 2012
A lot of security folks have little to no development experience, complicating their jobs when they want to do something that's slightly different from what existing tools can do. Python provides a particularly useful tool for them because of its innate readability, support for multiple programming paradigms, and tremendous library of existing modules that can be adapted and connected to do new and interesting things. And for those of us with more extensive programming backgrounds in addition to our security skillsets, Python provides an excellent workbench for nearly any relevant task.

Violent Python does not pretend in any way to teach readers how to program. In fact, when kicking off the brief section introducing the language itself, it flat out refers to to the reader "as an experienced programmer" (p. 6). However, a motivated hacker with limited exposure to Python can still follow along and pick things up relatively quickly, as VP doesn't really use any particularly esoteric language features.

That said, it also does not necessarily require the reader to cover it linearly from page 1 to the end. The subtitle of the book, after all, calls it a "cookbook for hackers", and it handles its end of the bargain. VP does not go into great detail for these projects but illustrates how to accomplish them relatively simply, primarily as inspiration for the reader who can then use the ideas and code as building blocks for self-driven projects.

I rarely like getting technology books in electronic format, and so I have the paperback copy. Given the complete lack of diagrams in this book, however, it wouldn't matter as much in this case. The quality of the paper and printing seems relatively high; the papers have a smooth, creamy texture, and the book has wide margins that lend themselves very well to note taking and similar marginalia. While I'm not particularly a fan of the particular typeface used for code in the book, I didn't find it so distracting as to make it impossible to work. As has become sadly common these days, the book contains a number of typographical errors and I really wish the publisher had put it through one more review iteration to catch them.

Contents

Chapter 2, "Penetration Testing with Python", provides examples of how to perform a port scan (first using the socket API and then with nmap integration), brute forcing, using weaknesses in SSH key generation, injecting malicious IFRAMEs, interacting with Metasploit, and sending custom buffer overflow code over the network.

Chapter 3, "Forensic Investigations with Python", discusses analyzing the history of wireless access points in the Windows registry (including geolocation), investigation of the Recycle Bin, examining metadata in various document types, and using application artifacts like SQLite databases in Firefox and Skype or iTunes Mobile.

Chapter 4, "Network Traffic Analysis with Python", gets into better geolocation, packet parsing using dpkt and Scapy, KML generation, and analyzing various types of traffic like the LOIC DDOS tool, varying TTLs from spoofed port scans, and DNS fast-flux, and TCP sequence prediction. It also briefly covers generating packets to match IDS signatures.

Chapter 5, "Wireless Mayhem with Python", reviews mining WiFi traffic for personal information like payment cards and authentication credentials, analyzing 802.11 probes and beacons, intercepting and hijacking UAV command traffic, detecting Firesheep use, and manipulate Bluetooth networks.

Chapter 6, "Web Recon with Python", explains the Mechanize and BeautifulSoup libraries as well as using the Google and Twitter APIs, plus a small section on spear phishing.

Chapter 7, "Antivirus Evasion with Python", covers how to use Pyinstaller to obfuscate a Metasploit payload from antivirus as well as how to check your code automatically against AV scanners.
29 people found this helpful
Report

Top reviews from other countries

Translate all reviews to English
Andy
5.0 out of 5 stars Sehr gut
Reviewed in Germany on January 27, 2019
Im Rahmen des Studiums unseres Sohnes mega hilfreich
MisterBG
5.0 out of 5 stars reçu hier et déj)à conquis
Reviewed in France on February 28, 2017
J'ai reçu ce livre hier et m'en suis emparé de suite!
contenu qui monte rapidement en complexité (tant mieux) et, cela mérite d'être cité, le tout est clairement expliqué.
Je lis en pratiquant en même temps sur mon ordi pour mieux comprendre et c'est impeccable.

il y a même un site ou on peut récupérer directement les codes présentés dans le livre, ce qui est un plus pour celui qui ne souhaite pas tout retaper. Personnelement, je préfère retaper car j'apprends mieux en faisant par moi-même (car c'est en faisant des "bêtises" qu'on arrive plus facilement à les identifier et à les éviter par la suite alors que si on se contente de copier/coller le code... l'apprentissage n'est pas aussi bon ;) )
ce livre complète mes autres bouquins sur python "grey hat python", "black hat python". à mon avis ce livre est supérieur aux deux précédemment cités en terme de pédagogie tout du moins puisqu'ils n'ont pas non plus la même finalité.
avoir des connaissances (et si possible un peu plus) en Python est selon moi un prérequis sinon, vous risquez de galérer pour aller plus loin que le chapître 1.
5 people found this helpful
Report
Amazon Customer
5.0 out of 5 stars great book for starting out in python
Reviewed in Canada on November 2, 2016
great book for starting out in python. it gives great examples and information about past use of the scripts. a must for any pen tester
Rajib
5.0 out of 5 stars This book completes the holy trinity of Gray Hat Python---Black ...
Reviewed in India on March 16, 2015
This book completes the holy trinity of Gray Hat Python---Black Hat Python--Violent Python. These are must haves for anyone wishing to explore the darker side of Python
3 people found this helpful
Report
Mario Guerra
5.0 out of 5 stars Mario
Reviewed in Spain on May 16, 2014
A must have! Highly recomendable for those involved in exploits development. You should also buy a boom called Grayhat Python.
One person found this helpful
Report