Bandit Level 4 -> Level 5

The password for the next level is stored in the only human-readable file in the inhere directory. Tip: if your terminal is messed up, try the “reset” command.

🔧 Comandos usados

# Comando principal usado na fase
file inhere/*

Output

bandit4@bandit:~$ file inhere/* inhere/-file00: PGP Secret Sub-key - inhere/-file01: data inhere/-file02: data inhere/-file03: data inhere/-file04: data inhere/-file05: data inhere/-file06: data inhere/-file07: ASCII text inhere/-file08: data inhere/-file09: data

cat inhere/-file07

Output

4oQYVPkxZOOEOO5pTW81FB8j8lxXGUQw

🧠 Explicação

Nao sabia fazer esse level, procurei "human readable" nos comandos recomendados pelo Bandit

Find File e ls, e ao ler sobre o que o comando file fazia achei o seguinte:

 file tests each argument in an attempt to classify it.

O que significa que file classifica o tipo do arquivo, fiz file em todos os arquivos do diretorio inhere, me retornou que o file07 era o unico em ASCII, ou seja, em texto, nao binario, com isso consegui a senha pro proximo level.

Last updated