Skip to main content
Welcome to the lab that challenges you to combine password cracking, steganography, and open source intelligence techniques to uncover a hidden treasure. In this lab, you will extract a password-protected ZIP file, decode a secret message embedded in an image, and analyze image metadata to locate the treasure. ──────────────────────────────

Step 1: Extract the Password-Protected ZIP File

The first challenge involves an old map secured inside a password-protected ZIP file (treasure.zip) located in the root directory. Your mission is to crack the ZIP file’s password and extract its content. Once extracted, save the discovered password along with the file q1.txt in the root directory. Begin by converting the ZIP file into a hash format that John the Ripper can process using the zip2john tool:
Now, use John the Ripper to crack the password:
You should see output similar to the example below, indicating that the password has been successfully cracked:
Once the password (admin123) is retrieved, unzip the file by providing the password when prompted:
Finally, record the discovered password by writing it into the file q1.txt located in the root directory:
Make sure to verify that q1.txt is correctly created in the root after extracting the ZIP file.
──────────────────────────────

Step 2: Uncover the Hidden Secret Message Using Steganography

The next challenge requires you to extract a secret message hidden within an image file (DSCN0042.jpg). To achieve this, we will crack the passphrase used for embedding the message with the help of the stegcracker tool and a popular wordlist (rockyou.txt). Start by running stegcracker to obtain the passphrase:
With the revealed passphrase (password123), use the steghide tool to extract the hidden data from the image:
Finally, review the hidden message by displaying the contents of the extracted file:
Use the extracted message as the clue for locating the treasure.
──────────────────────────────

Step 3: Analyze Image Metadata to Reveal the Treasure Location

The final step involves analyzing the metadata of an image (e.g., clue.jpg) to determine the treasure’s exact location. Use exiftool or a similar metadata extraction utility on the image file to extract GPS coordinates and other relevant details. Below is a sample output from a metadata extraction using exiftool:
This GPS data and the additional metadata will guide you directly to the treasure location.
Always handle sensitive data with caution and ensure you have proper authorization before extracting or analyzing image metadata.
──────────────────────────────

Conclusion

In this lab, you successfully:
  • Extracted a password-protected ZIP file and cracked its password using zip2john and John the Ripper.
  • Revealed a secret message embedded in an image with the help of stegcracker and steghide.
  • Analyzed critical image metadata to obtain the GPS coordinates needed to locate the treasure.
Now it’s your turn to apply these techniques to similar challenges. Happy hunting!

Watch Video

Practice Lab