OverTheWire Bandit Guide

here's how to solve the bandit level 7 → 8

Back to the Bandit Guides

Previous Level Guide: Bandit Level 6 → 7


Access

SSH: ssh bandit7@bandit.labs.overthewire.org -p 2220

Password: xkO4Hz3ks0FEB9dLOlZKicb2NtW2OL27

Info

Description: The password for the next level is stored in the file data.txt next to the word millionth
Commands: man, grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd

Theory

To get the password, the instructions say that it's inside a file next to the word millionth. We can assume from this that there's a bunch of lines with random words next to random passwords that don't work except for one line that has the word millionth next to the real password, then looking through the manual (which now we don't have the links for it so that we use the command "man #command#" and if you change #command# for a real command it will be like if you were on the manual page, but it's inside the console/terminal) aka "man grep" would be the command, in here we can see that it does exactly what we need, just put grep, then the word/pattern you want to find, and finally in which file, or don't specify filename to find it in all files of the current directory. So, with all of this we get:

grep millionth data.txt

Solution

Now you just have to get into the level and do the command:

~$ grep millionth data.txt
millionth       lluKkeJYKiGSwBDlAetZmv6JYgpIGfK8

And that's it! Now we should be good to go to the next level.

https://overthewire.org/wargames/bandit/bandit8.html
Next Level Guide: Bandit Level 8 → Level 9