How To Install magicrescue on Kali Linux
Introduction
In this tutorial we learn how to install magicrescue on Kali Linux.
What is magicrescue
magicrescue is:
Magic Rescue scans a block device for file types it knows how to recover and calls an external program to extract them. It looks at “magic bytes” (file patterns) in file contents, so it can be used both as an undelete utility and for recovering a corrupted drive or partition. As long as the file data is there, it will find it.
Magic Rescue uses files called ‘recipes’. These files have strings and commands to identify and extract data from devices or forensics images. So, you can write your own recipes. Currently, there are the following recipes: avi, canon-cr2, elf, flac, gpl, gzip, jpeg-exif, jpeg-jfif, mbox, mbox-mozilla-inbox, mbox-mozilla-sent, mp3-id3v1, mp3-id3v2, msoffice, nikon-raw, perl, png, ppm, sqlite and zip.
This package provides magicrescue, dupemap and magicsort commands. magicrescue is a carver and is useful in forensics investigations.
There are three methods to install magicrescue on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install magicrescue Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install magicrescue using apt-get by running the following command:
sudo apt-get -y install magicrescueInstall magicrescue Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install magicrescue using apt by running the following command:
sudo apt -y install magicrescueInstall magicrescue Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install magicrescue using aptitude by running the following command:
sudo aptitude -y install magicrescueHow To Uninstall magicrescue on Kali Linux
To uninstall only the magicrescue package we can use the following command:
sudo apt-get remove magicrescueUninstall magicrescue And Its Dependencies
To uninstall magicrescue and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove magicrescueRemove magicrescue Configurations and Data
To remove magicrescue configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge magicrescueRemove magicrescue configuration, data, and all of its dependencies
We can use the following command to remove magicrescue configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge magicrescueDependencies
magicrescue have the following dependencies:
References
Summary
In this tutorial we learn how to install magicrescue package on Kali Linux using different package management tools: apt, apt-get and aptitude.