Bandit Level 5 -> Level 6
The password for the next level is stored in a file somewhere under the inhere directory and has all of the following properties: human-readable 1033 bytes in size not executable
🔧 Comandos usados
# Comando principal usado na fase
find ./ -size 1033c
Output
#Output do comando
bandit5@bandit:~/inhere$ find ./ -size 1033c
./maybehere07/.file2
cat maybehere07/.file2
Output
HWasnPhtq9AVKe0dmk45nxy20cvUa6EG
🧠 Explicação
Tambem nao sabia fazer esse, sabia que era feito com find, deu uma lida procurei sobre human-readable no find, porem nao achei, provavelmente teria de concatenar o file com find?, lendo mais sobre a documentacao de find achei
-size n[cwbkMG]
File uses less than, more than or exactly n units of space, rounding up. The following suffixes
can be used:
`b' for 512-byte blocks (this is the default if no suffix is used)
`c' for bytes
Permitia eu procurar arquivos pelo seu tamanho ao procurar pelo exato tamanho de 1033 bytes, consegui achar o unico file com esse tamanho e consegui a senha para o proximo nivel.
Last updated