OverTheWire - Bandit - Level 8 → Level 9
Warning: This post contains a solution!
Only continue if:
1.) you want to see a possible alternative solution or
2.) you are stuck and need a hint!
1.) you want to see a possible alternative solution or
2.) you are stuck and need a hint!
Connect to the server using the following credentials:
Server: bandit.labs.overthewire.org
Port: 2220
Username: bandit8
Password: cvX2xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Level Goal is:
The password for the next level is stored in the file data.txt and is the only line of text that occurs only once
With this information in mind, we can search for a unique line in the file. We can use the uniq command to do that.
|
|
As described under ‘Note:’, we first have to sort the list. So, just combine sort and uniq:
|
|