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 fileq1.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:
admin123) is retrieved, unzip the file by providing the password when prompted:
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:
password123), use the steghide tool to extract the hidden data from the image:
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:
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
zip2johnand John the Ripper. - Revealed a secret message embedded in an image with the help of
stegcrackerandsteghide. - Analyzed critical image metadata to obtain the GPS coordinates needed to locate the treasure.