Login#
- ssh :
ssh bandit8@bandit.labs.overthewire -p 2220
- password :
dfwvzFQi4mU0wfNbFOe9RoWskMLg7eEc
Task :#
- find the password in a file , the hint is the password is the only one that occurs once
Solution#
- I used the
sort
command to sort the list of line the - using the
|
combining it to the uniq -c
command which removes all the duplicates and with the parameter -c
it will display the numbers of occurrences of each line, - following with
|
to the grep
command where we gonna look for 1
sort data.txt | uniq -c | grep 1