18 Mar 2022 - mike
The password for the next level is stored in the file data.txt and is the only line of text that occurs only once
Let’s ssh
into the next game:
ssh -p 2220 bandit8@bandit.labs.overthewire.org
password: cvX2JJa4CFALtqS87jk27qwqGhBM9plV
This one seems more difficult but really isn’t… Let’s see what we need to do to find this file:
sort
all of the lines in the fileWe’ll use something called Piping |
here.
sort data.txt | uniq -u
The above like uses the sort
command to sort all lines, then uses uniq
with the flag -u
to find the only unique line.
password: UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR
Done and done… we just found that password… no big deal.
wargames
footer