
Learning Python for Forensics
Leverage the power of Python in forensic investigations, 2nd Edition
- 476 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Learning Python for Forensics
Leverage the power of Python in forensic investigations, 2nd Edition
About this book
Design, develop, and deploy innovative forensic solutions using Python
Key Features
- Discover how to develop Python scripts for effective digital forensic analysis
- Master the skills of parsing complex data structures with Python libraries
- Solve forensic challenges through the development of practical Python scripts
Book Description
Digital forensics plays an integral role in solving complex cybercrimes and helping organizations make sense of cybersecurity incidents. This second edition of Learning Python for Forensics illustrates how Python can be used to support these digital investigations and permits the examiner to automate the parsing of forensic artifacts to spend more time examining actionable data.
The second edition of Learning Python for Forensics will illustrate how to develop Python scripts using an iterative design. Further, it demonstrates how to leverage the various built-in and community-sourced forensics scripts and libraries available for Python today. This book will help strengthen your analysis skills and efficiency as you creatively solve real-world problems through instruction-based tutorials.
By the end of this book, you will build a collection of Python scripts capable of investigating an array of forensic artifacts and master the skills of extracting metadata and parsing complex data structures into actionable reports. Most importantly, you will have developed a foundation upon which to build as you continue to learn Python and enhance your efficacy as an investigator.
What you will learn
- Learn how to develop Python scripts to solve complex forensic problems
- Build scripts using an iterative design
- Design code to accommodate present and future hurdles
- Leverage built-in and community-sourced libraries
- Understand the best practices in forensic programming
- Learn how to transform raw data into customized reports and visualizations
- Create forensic frameworks to automate analysis of multiple forensic artifacts
- Conduct effective and efficient investigations through programmatic processing
Who this book is for
If you are a forensics student, hobbyist, or professional seeking to increase your understanding in forensics through the use of a programming language, then Learning Python for Forensics is for you. You are not required to have previous experience in programming to learn and master the content within this book. This material, created by forensic professionals, was written with a unique perspective and understanding for examiners who wish to learn programming.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Databases in Python
- The basic design and implementation of SQLite3 databases
- Working with these databases in Python using built-in and third-party modules
- Understanding how to recursively iterate through directories in Python
- Understanding filesystem metadata and the methods for accessing it using Python
- Crafting CSV and HTML reports for easy review by our end user
An overview of databases
Using SQLite3
Using SQL
>>> CREATE TABLE custodians (id INTEGER PRIMARY KEY, name TEXT);
- INTEGER
- TEXT
- REAL
- BLOB
- NULL
>>> INSERT INTO custodians (id, name) VALUES (null, 'Chell');
>>> INSERT INTO custodians (id, name) VALUES (null, 'GLaDOS');
>>> SELECT * FROM custodians;
1|Chell
2|GLaDOS
>>> SELECT name,id FROM custodians WHERE id = 1;
Chell|1
Designing our script
Table of contents
- Title Page
- Copyright and Credits
- About Packt
- Contributors
- Preface
- Now for Something Completely Different
- Python Fundamentals
- Parsing Text Files
- Working with Serialized Data Structures
- Databases in Python
- Extracting Artifacts from Binary Files
- Fuzzy Hashing
- The Media Age
- Uncovering Time
- Rapidly Triaging Systems
- Parsing Outlook PST Containers
- Recovering Transient Database Records
- Coming Full Circle
- Other Books You May Enjoy