The password for the next level is stored in the file data.txt next to the word millionth


Here are the details which we have from the previous level:

  • Host: bandit.labs.overthewire.org
  • Port: 2220
  • Username: bandit7
  • Password: morbNTDkSW6jIlUc0ymOdMaLnOlFVAaj

So, The SSH syntax will be:

sshpass -p morbNTDkSW6jIlUc0ymOdMaLnOlFVAaj ssh [email protected] -p 2220

As we know, The password of the next level is at next to the word millionth. So, we can use the grep command to match the line containing the word millionth and retrieve the password.

grep millionth data.txt

OR,

cat data.txt | grep millionth