Bandit Level 12 → Level 13

Lets see what is inside that data.txt file:
ls
cat 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/Caesar3
cd /tmp/Caesar3
cp ~/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 > file
file 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.gz
gzip -d file.gz
-d
: Decompress.
ls
file file

It is compressed with bzip2, lets change the file extension to bz2, and decompress it and check its type:
mv file file.bz2
bzip2 -d file.bz2
-d
: Decompress.
ls
file file

Its again compressed with gzip, lets redo what we did above:

Now its tar archive, we can just do:
tar -xvf file
x
: 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