Bandit Level 12
data.txtis a hexdump = a text representation of binary data.- Underneath it is a file that has been compressed multiple times with different tools, layered one on top of another.
- First step is reversing the hexdump back to binary with
xxd -r data.txt > /tmp/data.xxd -rreverses a hexdump back into the original binary- Then use
fileon the result to identify what kind of compression is on the outermost layer
- From there it’s a loop: identify the compression type with
file, rename the file to the correct extension (e.g..gz,.bz2,.tar), and decompress with the right tool (gzip -d,bzip2 -d,tar xf).- Repeat until
filereports the result is ASCII text
- Repeat until
Password
5Te8Y4drgCRfCx8ugdwuEX8KFC6k2EUu