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.

bandit4a

Inside the inhere folder are a number of files.

bandit4b

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

bandit4c

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.

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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