Level 9 - Find password in a data.txt which is the only unique line (Misc)
Description
The goal of this level is to get the password for the next level stored in data.txt which is the only unique line.
Tech used
- cat
- sort
- uniq
Solutions
Run ssh bandit8@bandit.labs.overthewire.org -p 2220. Password is dfwvzFQi4mU0wfNbFOe9RoWskMLg7eEc
- Show file contents, sort, and print unique line. The bit not covered in the description is that the contents have to be sorted.
- Run
cat data.txt | sort | uniq -u
- Run
Notes
-uimplies only print unique linesuniqmanual page