Bandit Level 8 | Akash Trehan

Bandit Level 8

OverTheWire logo

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

Commands you may need to solve this level

grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd

Helpful Reading Material

The unix commandline: pipes and redirects


I really didn’t use a proper method to solve this one. I used sort data.txt to get all data in a sorted manner so that all the repeated lines are together. Then I found out the odd one out through visual inspection. You can see below how easy it is to spot.


Hence I got the password.

Edit: Found a better method for this. The uniq command! When the data is sorted the -u flag can be used to print only the unique lines.

sort data.txt | uniq -u

Level 9 password: UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR

Follow @CodeMaxx
Bandit Level 7
Akash Trehan

Akash Trehan


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