Bandit - Going to Level 5
Goal
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.
Getting the information
To get the information we list the files contained in the inhere directory and display their content. Note that because latex does not allow to display garbage characters easily I have removed them from the output:
bandit4@melinda:~$ find inhere/ −type f | xargs cat
# [garbage characters]
X:koReBOKuIDDepwhWk7jZC0RTdopnAYKh
# [garbage characters]
Of course this solution is only viable if we have only a few files to look through. If we consider that the password is can only be made up of letters and digits, we can use grep and a regex to ease the search.
In the command below, we assume the password is at least 6 characters long.
bandit4@melinda:~$ find inhere/ −type f | xargs cat | grep −E ’\w{6}’
# [garbage characters]
X:koReBOKuIDDepwhWk7jZC0RTdopnAYKh