Book Image

Digital Forensics with Kali Linux - Third Edition

By : Shiva V. N. Parasram
Book Image

Digital Forensics with Kali Linux - Third Edition

By: Shiva V. N. Parasram

Overview of this book

Kali Linux is a Linux-based distribution that's widely used for penetration testing and digital forensics. This third edition is updated with real-world examples and detailed labs to help you take your investigation skills to the next level using powerful tools. This new edition will help you explore modern techniques for analysis, extraction, and reporting using advanced tools such as FTK Imager, Hex Editor, and Axiom. You’ll cover the basics and advanced areas of digital forensics within the world of modern forensics while delving into the domain of operating systems. As you advance through the chapters, you'll explore various formats for file storage, including secret hiding places unseen by the end user or even the operating system. You’ll also discover how to install Windows Emulator, Autopsy 4 in Kali, and how to use Nmap and NetDiscover to find device types and hosts on a network, along with creating forensic images of data and maintaining integrity using hashing tools. Finally, you'll cover advanced topics such as autopsies and acquiring investigation data from networks, memory, and operating systems. By the end of this digital forensics book, you'll have gained hands-on experience in implementing all the pillars of digital forensics: acquisition, extraction, analysis, and presentation – all using Kali Linux's cutting-edge tools.
Table of Contents (24 chapters)
1
Part 1: Blue and Purple Teaming Fundamentals
7
Part 2: Digital Forensics and Incident Response Fundamentals and Best Practices
10
Part 3: Kali Linux Digital Forensics and Incident Response Tools
15
Part 4: Automated Digital Forensics and Incident Response Suites
18
Part 5: Network Forensic Analysis Tools

Image recovery with Magicrescue

Magicrescue is an older tool that is still very useful, as it quickly scans and recovers certain file types that must be manually specified. For this lab, I’ll be using a 32-GB SanDisk flash drive, which once contained several audio, video, and image files that were all deleted by accident:

  1. I’ll first run the fdisk command to view the device information by typing the following:
    sudo fdisk -l

The fdisk command output seen in the following screenshot shows that the flash drive is recognized as sdc2.

Figure 9.10 – fdisk command output showing disk information

Figure 9.10 – fdisk command output showing disk information

  1. Before we continue, it is useful to view the magicrescue help manual by typing the following:
    man magicrescue

The following figure shows the usage options in magicrescue:

Figure 9.11 – Magicrescue usage options

Figure 9.11 – Magicrescue usage options

  1. To run magicrescue and search and recover files, we must first know which...