Bandit Level 8
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
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:
Bandit Level 7