WEBVTT

00:01.600 --> 00:06.300
Hey Guys welcome to file carving tools in the previous video we introduced.

00:06.290 --> 00:09.500
File carving concepts and the windows recycle bin.

00:09.670 --> 00:15.370
We're first going to show how to recover deleted files from a disk image using the sleuthed kit tools.

00:15.670 --> 00:21.070
Ikat in particular that we're going to cover three command line carving tools that we're going to cover

00:21.070 --> 00:28.270
three CLID tools then we're going to cover three Selye carving tools included by default on Kalli Linux

00:28.900 --> 00:34.790
which are for most scalpel and photo rack before covering automated carving tools.

00:34.790 --> 00:39.160
Let's see an example of how to recover a deleted file using the sleuthed kit tools.

00:39.170 --> 00:45.230
Recall the first video of the previous section overview of TS K and file system analysis.

00:45.230 --> 00:49.580
We can use the FLSA tool to scan an image for deleted files.

00:49.580 --> 00:52.730
We execute this command on a sample image.

00:52.730 --> 00:58.760
The output shows a deleted file with name renamed without the initial letter after the deletion which

00:58.760 --> 01:02.940
has 5 as the MFT entry number to give more info about this file.

01:02.960 --> 01:06.710
We can run the ice stat tool specifying the MFT entry.

01:07.010 --> 01:12.230
The file is not allocated and there is a list of all the sectors where its data resides.

01:12.320 --> 01:13.590
To recover the file.

01:13.910 --> 01:20.540
Here's the ikat tool that by default displays the content of a file identified by the master file table

01:20.540 --> 01:22.970
entry to the standard output.

01:22.970 --> 01:28.220
I can also has a specific option for file recovery which is the r option.

01:28.370 --> 01:34.010
We will execute this option specifying the master file entry and redirect the output to a file named

01:34.010 --> 01:34.710
recover.

01:34.850 --> 01:40.910
Doc we can examine the files metadata with XXIV tool and see that it's actually an N S word document

01:41.300 --> 01:44.560
titled Jimmi jungle.

01:44.570 --> 01:51.200
We're now going to introduce the three Selye carving tools included by default on Kelly Linux for most

01:51.290 --> 01:53.320
scalpel and photo rec.

01:53.360 --> 01:59.030
All these tools car files from raw disk sectors on a lower level than the file system.

01:59.150 --> 02:04.250
Relying on databases of headers and footers of many different types of files and could also work directly

02:04.280 --> 02:07.890
on disk image files to see these three tools in action.

02:07.910 --> 02:14.450
We use a sample image of a fat 32 file system created for this file carving exercise will download this

02:14.540 --> 02:17.720
on the digital forensics tool testing images page.

02:17.720 --> 02:23.540
The exercise is named basic data carving test number one and the image is available as a zipped file

02:23.630 --> 02:30.260
of 11 megabytes of size it contains deleted files of only 61 megabytes of size.

02:30.410 --> 02:32.990
In this way the file size is not so big.

02:33.170 --> 02:38.800
So the carving process is fast but on large images it can take a very long time.

02:38.810 --> 02:44.420
The first carving tool we cover is foremost which has been developed at the Air Force Office of Special

02:44.420 --> 02:48.580
Investigations later updated at Naval Postgraduate School.

02:48.590 --> 02:54.950
The default configuration file for foremost is ATC for most scup which we usually edit only to enable

02:54.950 --> 02:59.300
the recovery of file formats not included in the default configuration.

02:59.300 --> 03:01.970
Let's take a look at our foremost file.

03:02.000 --> 03:06.830
We could see that for each of these formats the headers and footers are provided to enable format.

03:06.890 --> 03:09.300
We simply uncomment the corresponding line.

03:09.350 --> 03:15.980
In this case we don't modify C for most stock comp and we use the default configuration we execute the

03:16.050 --> 03:17.450
foremost on the sample image.

03:17.450 --> 03:23.150
We've downloaded the minatory options are so that specify the output directory where to save the recovered

03:23.150 --> 03:27.110
files and the option that specifies the input image file.

03:28.010 --> 03:30.110
We then execute this command.

03:30.110 --> 03:31.690
We look at the output directory.

03:31.730 --> 03:38.240
In particular at the audit dot text file that reports the extracted files each file is named from the

03:38.240 --> 03:44.030
starting sector number on the image followed by the extension the size in the starting offset and bytes

03:44.060 --> 03:45.920
are also reported at the bottom.

03:45.920 --> 03:49.250
There's a summary of the formats with the numbers of files recovered.

03:49.310 --> 03:53.990
The output directory also contains a subdirectory for each type of file with the corresponding recovered

03:53.990 --> 03:54.980
files.

03:54.980 --> 04:00.860
Now we execute the for most help option to see all the available options if we want to recover only

04:00.860 --> 04:02.600
specific file formats.

04:02.630 --> 04:07.220
There's the option fall by the type of file separated by commas.

04:07.220 --> 04:10.490
We've already seen the option to specify the input file.

04:10.550 --> 04:15.620
If we do not want to save the recovered files to the disk but simply write the audit file we shelfs

04:15.620 --> 04:22.900
specify the w option the V or verbose option also displays the audit file on the standard output.

04:22.920 --> 04:28.350
The second tool we cover is scalpel which is derived from formost the current latest version available

04:28.350 --> 04:31.920
from Cali Linux repositories is 1.6 0.

04:31.920 --> 04:38.430
The latest version is 2.0 and the source is available at the sleuthed can't get hub repository version

04:38.430 --> 04:43.320
2.0 includes interesting new features like multi-threading.

04:43.410 --> 04:50.850
Also on GPS use regular expressions support for headers footers an embedded header FOTR matching scalpels

04:50.850 --> 04:56.280
configuration file is located at ATC scalpel scalpel D-cup.

04:56.310 --> 05:02.280
It's very similar to that for most but the difference is that we first have to uncomment all the lines

05:02.280 --> 05:07.480
relative to the file formats we want to enable because they are not built in once.

05:07.590 --> 05:14.190
In this case we use a configuration file with all the formats enabled scalpels usage is also very similar

05:14.190 --> 05:15.410
to foremost.

05:15.480 --> 05:20.970
We run the scalpel tool on the same image specify in the o option for the output directory and the name

05:20.970 --> 05:27.410
of the image scalpel requires that the output directory be either empty or nonexistent.

05:27.870 --> 05:31.090
We run the tool after the execution of the tool.

05:31.170 --> 05:32.810
Let's look at the output directory.

05:32.880 --> 05:34.510
We have an audit not text file.

05:34.560 --> 05:39.690
As for the foremost look at the audit file we notice here the deleted files extracted are more than

05:39.690 --> 05:41.330
those recovered by foremost.

05:41.520 --> 05:47.220
Scalpel seems to report duplicate files with the same extensions and starting at the same offset.

05:47.220 --> 05:54.220
For example these files blast carving tool we cover is photo rack developed by the same developer of

05:54.220 --> 05:56.730
test disk despite its name.

05:56.740 --> 06:02.740
This utility is not only capable of recovering image files but like the other carby tools can recover

06:02.740 --> 06:04.710
many different file formats.

06:04.720 --> 06:10.330
It's more intuitive to use compared to Formosan scalpel since it provides a text base user interface

06:10.330 --> 06:12.300
like text disk to execute it.

06:12.310 --> 06:17.400
We run the command photo rec with the same simple test image

06:21.050 --> 06:24.780
it shows the textual interface with the available media to analyze.

06:24.890 --> 06:29.300
We hit the Enter key on proceed and select the only available partition.

06:29.300 --> 06:32.190
We could also change the programs options here.

06:34.290 --> 06:39.240
Paranoid means that recovered files are verified and invalid files rejected.

06:39.240 --> 06:43.730
While the expert mode allows us to force the file system block size and the offset.

06:43.980 --> 06:50.100
In this case we leave the default options unchanged file option is useful if we want to modify the list

06:50.100 --> 06:54.960
of file formats to recover checking or unchecking the corresponding boxes.

06:54.960 --> 07:00.060
If we want to modify the list of file formats to recover checking or unchecking the corresponding boxes

07:00.540 --> 07:02.950
again we use the default list.

07:03.150 --> 07:09.590
So we go back and hit search then on other to select the file system.

07:09.820 --> 07:16.160
Then we have to choose the output directory where to stored the recovered files and hit see when the

07:16.160 --> 07:17.980
destination folder is correct.

07:21.970 --> 07:27.520
The program starts scanning the image and displays the recovery progress showing a summary with the

07:27.520 --> 07:30.760
number of recovered files were terminated.

07:30.760 --> 07:38.940
The files are saved in the recoupment der subdirectory as we could see with the file manager we notice

07:38.940 --> 07:45.960
there are two documents photo Trek also recovered the file name from the meta data Boatright does not

07:45.960 --> 07:51.150
organize files and subdirectories based on their formats like the other carving tools.

07:51.150 --> 07:56.280
In this case we have a lot of extracted files under many subdirectories.

07:56.280 --> 08:01.920
The photo Reyk web site provides some scripts to sort these files according to different criteria.

08:01.920 --> 08:07.620
Great job in this video we've covered the recovery of deleted files from a disk image using the sleuthed

08:07.620 --> 08:14.970
kit tools then how to use 3 cm lifestyle carving tools prayed stalled on Kelly Linux for most scalpel

08:15.060 --> 08:19.220
and photo rec in the next video extracting data with bulk extractor.

08:19.260 --> 08:24.330
We're going to show how to use the bulk extractor utility to extract a lot of useful info from a raw

08:24.330 --> 08:25.620
disk image.

08:25.620 --> 08:26.340
See there.
