Akash Trehan
Write-ups

OverTheWire Bandit Level 3 → 4 Walkthrough

Finding and reading a hidden file with ls -a

By Akash Trehan · · 1 min read · Wargame
OverTheWire Bandit Level 3 wargame title banner
OverTheWire Bandit Level 3 → 4 Walkthrough

Level goal: The password for the next level is stored in a hidden file in the inhere directory.

Commands you may need: ls, cd, cat, file, du, find

Helpful reading: None

Write-up

ls does not show the hidden files. Thus to look at all the files I used la which is an alias for ls -a.

1
bandit3@melinda:~$ ls inhere/

This shows a .hidden file. Files with names starting with a .(dot) automatically get hidden in Unix.
cat inhere/.hidden reveals the password for the next level.

Level 4 password: pIwrPrtPN36QITSp3EQaw936yaFoFgAB