Bandit Level 12 → Level 13

Lets see what is inside that data.txt file:
lscat data.txt
It is HexDump data, we can convert it to its original shape with a tool called xxd, but before that we will create a new directory in the tmp directory, and copy that data.txt file to it:
mkdir /tmp/Caesar3cd /tmp/Caesar3cp ~/data.txt .xxd -r data.txt-r: Revert hexdump to binary.

We redirect the output to a file, and check the type of that file:
xxd -r data.txt > filefile file
As we can see it is compressed with gzip, lets change the file extension to gz and decompress it, then check the file type of that file:
mv file file.gzgzip -d file.gz-d: Decompress.
lsfile file
It is compressed with bzip2, lets change the file extension to bz2, and decompress it and check its type:
mv file file.bz2bzip2 -d file.bz2-d: Decompress.
lsfile file
Its again compressed with gzip, lets redo what we did above:

Now its tar archive, we can just do:
tar -xvf filex: Extract.v: Verbose.f: File Name.
file data5.bin
It is another tar file, so redo the previous process:

Bzip2 again:

Another tar:

Gzip:

Finally text file, lets read it:
cat file
Here is the password for the next user.
Last updated