Bandit Niveles 7 a 12

OverTheWire. Bandit Niveles 7 - 12

Continuamos con la serie de "Write Ups" de OverTheWire y Bandit. En esta ocasión veremos las soluciones para los niveles desde el 7 al 12. Como siempre, primero consulta manuales, información etc... para tratar de resolverlos. Vamos allá !!!


Bandit Level 7 → Level 8

Level Goal

The password for the next level is stored in the file data.txt next to the word millionth

Commands you may need to solve this level

grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd


Solución Nivel 7

bandit7@bandit:~$ cat data.txt 
missals 4zXrwugcziiPplv53mBGNLAkKSzBYa1N
concurred jD35xJ6pc5QCsQtSG0XF0rn4kJ8d3rAk
parking oJjfAFVKYVa9cZ7mCwtIW8OqskxbcxI0
pretzel's 8q6gSyE5m9DN7vTYnxx1VeR6e325PXZH
cootie f11kvv4is8qfgv8M9xsnymzdKIQXwb0v
hypoallergenic 5jnkbRCKhabP3rcYcjfRivgHkn5gVFgx
promulgation BlBed9VzEo3AvPMwk6agfXbDRP2Lir0U
snailing baOwidiC9PdtvFRWoBtT9SwSawmis5GE
employed Vz6Gr6nglTqegM0reVvlCRKgegIH16xD
circumcises fxhklXrR9h5Z7O6RoqgRcJ3YDtR7^C
bandit7@bandit:~$ ^C

bandit7@bandit:~$ cat data.txt | grep millionth
millionth cvX2JJa4CFALtqS87jk27qwqGhBM9plV

Password Acceso Nivel 8 : cvX2JJa4CFALtqS87jk27qwqGhBM9plV





  • Bandit Level 8 → Level 9

    Level Goal

    The password for the next level is stored in the file data.txt and is the only line of text that occurs only once

    Commands you may need to solve this level

    grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd

    Helpful Reading Material

  • Solución Nivel 8

    bandit8@bandit:~$ cat data.txt  |sort | uniq -c

         10 tWwjd16fG17vGdjutfOygVTjEGxlijOS
         10 uBRx9inQTeaDZAuzEb2MadWXmkH8uW4O
          1 UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR
         10 vBo3qbjNEF2d3meGEkRfc3mKpjtiDz1i
         10 VElUBEIhJ4yBgOBSN05WgtV2rF6kkGdz

    password : UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR

    Password Acceso Nivel 9 : UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR




  • Bandit Level 9 → Level 10

    Level Goal

    The password for the next level is stored in the file data.txt in one of the few human-readable strings, beginning with several ‘=’ characters.

    Commands you may need to solve this level

    grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd

  • Solución Nivel 9
  • bandit9@bandit:~$ strings data.txt -n 10
    2========== the
    ========== password
    ========== isa
    ========== truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk

    password: truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk

  • Password Acceso Nivel 10 : truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk




  • Bandit Level 10 → Level 11

    Level Goal

    The password for the next level is stored in the file data.txt, which contains base64 encoded data

    Commands you may need to solve this level

    grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd

    Helpful Reading Material

  • Solución Nivel 10

  • bandit10@bandit:~$ ls
  • data.txt
  • bandit10@bandit:~$ cat data.txt
  • VGhlIHBhc3N3b3JkIGlzIElGdWt3S0dzRlc4TU9xM0lSRnFyeEUxaHhUTkViVVBSCg==
  • bandit10@bandit:~$ cat data.txt | base64 -d
  • The password is IFukwKGsFW8MOq3IRFqrxE1hxTNEbUPR

  • Password Acceso Nivel 11 : IFukwKGsFW8MOq3IRFqrxE1hxTNEbUPR





  • Bandit Level 11 → Level 12

    Level Goal

    The password for the next level is stored in the file data.txt, where all lowercase (a-z) and uppercase (A-Z) letters have been rotated by 13 positions

    Commands you may need to solve this level

    grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd

    Helpful Reading Material

  • Solución Nivel 11

  • Recomendación. Si queréis podéis instalar bsdgames, es una colección de juegos clásicos y algunas utilidades, entre ellas algunas "decrypters" como rot13,  caesar ...

  • apt-get install bsdgames

  • Se instalan en el directorio /usr/games

  • root@kali:/usr/games# ./rot13 Gur cnffjbeq vf 5Gr8L4qetPEsPk8htqjhRK8XSP6x2RHh
  • The password is 5Te8Y4drgCRfCx8ugdwuEX8KFC6k2EUu

  • Password Acceso Nivel 12 : 5Te8Y4drgCRfCx8ugdwuEX8KFC6k2EUu




  • Bandit Level 12 → Level 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 using mkdir. For example: mkdir /tmp/myname123. Then copy the datafile using cp, and rename it using mv (read the manpages!)

    Commands you may need to solve this level

    grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd, mkdir, cp, mv, file

    Helpful Reading Material

  • Solución Nivel 12

  • Lo primero que hay que tener para resolver este nivel es PACIENCIA, es largo de resolver ya que hay que realizar múltiples tareas para llegar a la conclusión del mismo.

  • (*) creamos en el directorio tmp una carpeta para tener permisos de escritura
  • mkdir /tmp/jperez

  • (*) copiamos el archivo data.txt a esa carpeta
  • cp data.txt /tmp/jperez/data.txt

  • Desde la carpeta temporal realizamos el resto de procedimientos.

  • (*) convertimos el archivo "dumpeado" en un archivo con el comando xxd -reverse

  • bandit12@bandit:/tmp/jperez$ xxd -reverse data.txt > archivo
  • bandit12@bandit:/tmp/jperez$ ls
  • archivo  data.txt

  • bandit12@bandit:/tmp/jperez$ file archivo
  • archivo: gzip compressed data, was "data2.bin", last modified: Tue Oct 16 12:00:23 2018, max compression, from Unix

  • bandit12@bandit:/tmp/jperez$ mv archivo archivo.gz
  • bandit12@bandit:/tmp/jperez$ ls
  • archivo.gz  data.txt
  • bandit12@bandit:/tmp/jperez$ gunzip archivo.gz
  • bandit12@bandit:/tmp/jperez$ ls
  • archivo  data.txt
  • bandit12@bandit:/tmp/jperez$ file archivo
  • archivo: bzip2 compressed data, block size = 900k

  • bandit12@bandit:/tmp/jperez$ bunzip2 archivo
  • bunzip2: Can't guess original name for archivo -- using archivo.out
  • bandit12@bandit:/tmp/jperez$ ls
  • archivo.out  data.txt

  • bandit12@bandit:/tmp/jperez$ file archivo.out
  • archivo.out: gzip compressed data, was "data4.bin", last modified: Tue Oct 16 12:00:23 2018, max compression, from Unix
  • bandit12@bandit:/tmp/jperez$ mv archivo.out archivo.gz
  • bandit12@bandit:/tmp/jperez$ gunzip archivo.gz
  • bandit12@bandit:/tmp/jperez$ ls
  • archivo  data.txt
  • bandit12@bandit:/tmp/jperez$ file archivo
  • archivo: POSIX tar archive (GNU)

  • bandit12@bandit:/tmp/jperez$ tar xf archivo
  • bandit12@bandit:/tmp/jperez$ ls
  • archivo  data5.bin  data.txt

  • bandit12@bandit:/tmp/jperez$ file data5.bin
  • data5.bin: POSIX tar archive (GNU)
  • bandit12@bandit:/tmp/jperez$ tar xvf data5.bin
  • data6.bin

  • bandit12@bandit:/tmp/jperez$ file data6.bin
  • data6.bin: bzip2 compressed data, block size = 900k
  • bandit12@bandit:/tmp/jperez$ bunzip2 data6.bin
  • bunzip2: Can't guess original name for data6.bin -- using data6.bin.out
  • bandit12@bandit:/tmp/jperez$ ls
  • archivo  data5.bin  data6.bin.out  data.txt
  • bandit12@bandit:/tmp/jperez$ file data6.bin.out
  • data6.bin.out: POSIX tar archive (GNU)
  • bandit12@bandit:/tmp/jperez$ tar xvf data6.bin.out
  • data8.bin
  • bandit12@bandit:/tmp/jperez$ file data8.bin
  • data8.bin: gzip compressed data, was "data9.bin", last modified: Tue Oct 16 12:00:23 2018, max compression, from Unix

  • bandit12@bandit:/tmp/jperez$ mv data8.bin data8.bin.gz
  • bandit12@bandit:/tmp/jperez$ gunzip data8.bin.gz
  • bandit12@bandit:/tmp/jperez$ ls
  • archivo  data5.bin  data6.bin.out  data8.bin  data.txt
  • bandit12@bandit:/tmp/jperez$ file data8.bin
  • data8.bin: ASCII text
  • bandit12@bandit:/tmp/jperez$ cat data8.bin
  • The password is 8ZjyCRiBWFYkneahHwxCv3wb2a1ORpYL

  • Password Acceso Nivel 13 : 8ZjyCRiBWFYkneahHwxCv3wb2a1ORpYL


  • Acceder a Niveles 0 - 6Acceder a Niveles 13 - 19
  • Etiquetas