Level 12 → 13
Level Goal
The password for the next level is stored in the file data.txt, which is a hexdump of a file that has been repeatedly compressed. For this level it may be useful to create a directory under /tmp in which you can work. Use mkdir with a hard to guess directory name. Or better, use the command mktemp -d. Then copy the datafile using cp, and rename it using mv (read the manpages!)
Write-Up
Create a temporary directory and copy the file:
mktemp -d
cp data.txt /tmp/tmp.83OGZ2BEJL
cd /tmp/tmp.83OGZ2BEJL
Reverse the hexdump:

Determine the file type and decompress repeatedly:

Finally, the password was revealed:

The retrieved password: FO5dwFsc0cbaIiH0h8J2eUks2vdTDwAn
Access the next level:
Enter the password when prompted.
Lessons Learned
Hexdumps can be reversed using the
xxdcommandFile types can be determined using the
filecommandDifferent compression methods require different decompression tools (
gzip,bzip2,tar)Creating temporary directories is useful for working with complex file manipulations
Multiple layers of compression require patience and systematic approach to unravel
-- Othmane
Last updated
Was this helpful?