Filecarving with Foremost

1. Introduction
In this lab, a disk image file āevidence.imgā is provided in the home directory of the root user (/root/). One of the JPEG files present on the disk contains the flag.
Extract files from the given image using Foremost tool and retrieve the flag!
Guidelines:
viu tool can be used to view image files on command-line interface (CLI).
2. Filecarving with Foremost
First letās check the command reference of the tool foremost that is linked above.

foremost -v -i evidence.img -o output

As we can see, one jpg file got extracted. Letās open that file with the viu tool.

3. Retrieve the flag
cd output/jpg
viu 00263184.jpg

4. Summary
Last updated
Was this helpful?