Bandit Level 4 | Akash Trehan

Bandit Level 4

OverTheWire logo

Level 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.

Commands you may need to solve this level

ls, cd, cat, file, du, find

Helpful Reading Material

None

Write-up

The description says that we need to find the only human readable file in the inhere directory. To see the file format I used the file command on all the files in the inhere directory.

for x in `find inhere -type f -print`;
    do
        file $x;
    done

I got


inhere/-file08: data
inhere/-file05: data
inhere/-file07: ASCII text
inhere/-file04: data
inhere/-file00: data
inhere/-file01: data
inhere/-file06: data
inhere/-file03: data
inhere/-file09: data
inhere/-file02: data

Thus inhere/-file07 is the file we are looking for. cat inhere/-file07 gives the password for the next level.

Level 5 password: koReBOKuIDDepwhWk7jZC0RTdopnAYKh

Follow @CodeMaxx
Bandit Level 3
Akash Trehan

Akash Trehan

Hacker-Developer-Geek

comments powered by Disqus
rss facebook twitter github youtube mail spotify instagram linkedin google pinterest medium