Skip to main content

Posts

Showing posts with the label Bandit 13

Over the Wire - Bandit 13

Bandit 13 Objectives 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 using mkdir. For example: mkdir /tmp/myname123. Then copy the datafile using cp, and rename it using mv (read the manpages!) Solution First lets copy the file to a temporary directory so we can manipulate it bandit12@bandit:~$ mkdir /tmp/asbandit12 bandit12@bandit:~$ cp data.txt /tmp/asbandit12 bandit12@bandit:~$ cd /tmp/asbandit12 bandit12@bandit:/tmp/asbandit12$ ls data.txt now lets convert the hexdump back to its original file  ​ bandit12@bandit:/tmp/asbandit12$ xxd -r data.txt data.bin bandit12@bandit:/tmp/asbandit12$ ls data.bin  data.txt so now if we check the file type for the reverted data.bin file <bandit12@bandit:/tmp/asbandit12$ file data.bin data.bin: gzip compressed data, was "data2.bin", last modified: Tu