Bandit 4

OverTheWire Bandit 4

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.


Inside the inhere folder are a number of files.


The problem we run into is the leading hyphen. A lot of tools will interpret the -f as an argument read a file etc.


We use the file command to identify the type of file. The ASCII file contains readable text. We use the cat command to display the password inside.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s