Bandit 8

OverTheWire Bandit 8

Level Goal

The password for the next level is stored in the file data.txt and is the only line of text that occurs only once

bandit8a

Inside the home folder is a file called data.txt. I use the head command to take a peak inside it. Using the word count utility, w can see there are 1001 lines to process.

bandit8b

We use the sort and uniq utilities to sort the file,and count the number of occurrences. We are after the only unique line in the file, which we find by using the grep utility.

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