OverTheWire

Bandit 30

Bienvenido al nivel 30 de Bandit en OverTheWire

Al iniciar este nivel se nos indica la exisitencia de un repositorio ubicado en ssh://bandit30-git@bandit.labs.overthewire.org/home/bandit30-git/repo a traves del puerto 2220. La contraseña para el usuario bandit30-git es la misma que para bandit29 y la contraseña para el siguiente nivel esta almacenada en el repositorio de git.

Herramientas:
git

Lo primero será bajar el repositorio:

git clone ssh://bandit30-git@bandit.labs.overthewire.org:2220/home/bandit30-git/repo

Nos dejará un fichero llamado repo, accedemos y hacemos ls -la para ver su interior. Tiene un archivo README, lo leemos y veremos lo siguiente:

cat README.md
just an epmty file... muahaha

Probamos con un show para ver que nos proporciona del repositorio:

 git show
commit bfc06d1816a109b7c70dd7d7b40517018270a205 (HEAD -> master, origin/master, origin/HEAD)
Author: Ben Dover <noone@overthewire.org>
Date:   Sat Sep 26 21:53:20 2026 +0000

    initial commit of README.md

diff --git a/README.md b/README.md
new file mode 100644
index 0000000..029ba42
--- /dev/null
+++ b/README.md
@@ -0,0 +1 @@
+just an epmty file... muahaha

Los logs muestran bastante poco:

git log
commit bfc06d1816a109b7c70dd7d7b40517018270a205 (HEAD -> master, origin/master, origin/HEAD)
Author: Ben Dover <noone@overthewire.org>
Date:   Sat Sep 26 21:53:20 2026 +0000

    initial commit of README.md

Si buscamos entre las ramas externas vemos un antiguo master:

git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/master

Tenemos pocas pistas, como ultimo recurso se me ocurre revisar las etiquetas:

git tag -l
secret

Aparece una tag “secret” que no habiamos visto en los logs o en el show. Las tag no llevan contenido, son marcadores que ayudan a definir o anotar algun dato de algun commit, antiguo o nuevo.

Vamos a revisar el commit que lleva este tag.

git show secret
82NkymblXXXXXX

Voilá
¡Vamos al siguiente nivel con esta contraseña!

Enlaces de Interes