Book Image

Python Digital Forensics Cookbook

By : Chapin Bryce, Preston Miller
Book Image

Python Digital Forensics Cookbook

By: Chapin Bryce, Preston Miller

Overview of this book

Technology plays an increasingly large role in our daily lives and shows no sign of stopping. Now, more than ever, it is paramount that an investigator develops programming expertise to deal with increasingly large datasets. By leveraging the Python recipes explored throughout this book, we make the complex simple, quickly extracting relevant information from large datasets. You will explore, develop, and deploy Python code and libraries to provide meaningful results that can be immediately applied to your investigations. Throughout the Python Digital Forensics Cookbook, recipes include topics such as working with forensic evidence containers, parsing mobile and desktop operating system artifacts, extracting embedded metadata from documents and executables, and identifying indicators of compromise. You will also learn to integrate scripts with Application Program Interfaces (APIs) such as VirusTotal and PassiveTotal, and tools such as Axiom, Cellebrite, and EnCase. By the end of the book, you will have a sound understanding of Python and how you can use it to process artifacts in your investigations.
Table of Contents (11 chapters)

Visualizing events with Excel

Recipe Difficulty: Easy

Python Version: 2.7 or 3.5

Operating System: Any

Let's take it one step further from the previous recipe with Excel. Excel is a very robust spreadsheet application and we can do a lot with it. We will use Excel to create a table and plot graphs of the data.

Getting started

There are a number of different Python libraries with varying support for Excel and its many features. In this recipe, we use the xlsxwriter module to create a table and graph of the data. This module can be used for much more than that. This module can be installed by pip using the following command:

pip install xlsxwriter==0.9.9
To learn more about the xlsxwriter library, visit https://xlsxwriter...