Extract Data from a File

Hands-On Lab

 

Photo of Ermin Kreponic

Ermin Kreponic

Training Architect

Length

00:30:00

Difficulty

Beginner

In this hands-on lab, you’ll learn how data is embedded into files during creation and modification, and how this data can be extracted by anyone with access to the file.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.

Extract Data from a File

Introduction

In this hands-on lab, you’ll learn how data is embedded into files during creation and modification, and how this data can be extracted by anyone with access to the file.

Connecting to the Lab

  1. Open your terminal application, and run the following command. (Remember to replace <PUBLIC_IP> with the public IP you were provided on the lab instructions page.)
    ssh cloud_user@<PUBLIC_IP>
  2. Type yes at the prompt.
  3. Enter your password at the prompt.

Extract Data from a File

  1. Change to the /home directory.
    cd /home/cloud_user/
  2. From the home directory, use exiftool to list the file's metadata.
    exiftool WHO_MADE_ME.docx
  3. Locate the line that begins with Core Properties Creator, and copy the name of the author (Ermin Kreponic) to your clipboard.

Confirm the Result

  1. Run the following command to determine if the author name is correct:
    ./check.sh "Ermin Kreponic"
  2. You should receive a success message.
  3. If not, check the previous command for syntax or spelling errors and try again.

Conclusion

Congratulations, you've successfully completed this hands-on lab!