Bandit Level 8 → Level 9

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

Since the unique line is our password for the next level, we need to use uniq -u to extract that out of data.txt. However, uniq only filter adjacent matching lines from INPUT, therefore, we need to group the matching lines together before applying uniq. Therefore, we need to sort data.txt first and pipe it into uniq -u.

sort data.txt | uniq -u