Lab 6 Data Carving With Foremost (15 Points)
Lab 6 Data Carving With Foremost (15 Points)
Purpose
Foremost was written by US Air Force special agents, and it's free and open-source. It is very efficient at file carving--it rqpidly scans through disk images and
reconstructs the files, using a list of known headers and footers.
This makes it possible to recover the contents of files even after the directory information for them is lost, often by reformatting the disk. The filenames cannot be
recovered by this technique, but the file contents can.
And it's outrageously easy to use. Simply invoking Foremost with no options looks for all possible file types and puts the files it finds in a folder named "output".
cd
cd Desktop
curl https://samsclass.info/121/proj/p15.zip > p15.zip
unzip p15.zip
Examine your Kali desktop and make sure there isn't a folder named "output".
foremost -h
A list of options appears. We don't need any of them for this project, but the most interesting one to note is -q which makes the scan quicker by assuming every file
will start on a sector boundary, which seems like a very safe assumption.
foremost p15.dd
Foremost prints some strange binary stuff, as shown below, but that's OK--it worked.
That's it. Close or minimize your Terminal window.
The "jpg" and "zip" folders contain the recovered files, and the audit.txt file contains a list of all files recovered.
Resize or scroll the window to show this text (your date and time will be different):
8 FILES EXTRACTED
jpg:= 5
zip:= 3
------------------------------------------------------------------
Notice that the images were recovered, but not the filenames--all the files have numerical names now.
Foremost recovered two files that ProDiscover did not--a Guy Fawkes mask, and an image of the "Anarchist Cookbook".
These files were recovered as ZIP files, because that's how Microsoft's XML files are structured.
Double-click one of the recovered ZIP files. Kali Linux can't open it.
rm -rf /var/lib/apt/lists
apt-get update
Right-click one of the Zip files and click Rename. Change the file extension to DOCX and press the Enter key.
Two of the files are the ones ProDiscover found--the Hacker's Manifesto and the Bill of Rights.
Find the third file--a recipe for making Crank Meth, as shown below.
Recording Your Success
A name is redacted in the image above. Find it and use the form below to put your name on the WINNERS PAGE.
Your Name:
Password:
SUBMIT