So progression of these levels is going really well, and I am already on bandit level 7. If you haven’t had a chance to read my OverTheWire Bandit Write Up – Level 6 write up give it a quick read then head back over here. Enjoy that? Hopefully you did and will enjoy this one too.
The hints that I’ve got for this level is that the password is contained in a file named
data.txt and the password if adjust to the word
millionth. Reading these hints made my think that this file may contain a lot of lines. This potentially won’t allow for me to just scroll through and find it.
Let’s Start Hacking Then
As usual I start by spinning up a fresh terminal to start the SSH connection to the system.
ssh email@example.com -p 2220
I tried the password from the last level, and it worked. So I’m all good. I’m sat in the home directory of the bandit level 7 user so I run the normal command
ls and check what I have to hand. Inside this directory is the
data.txt file, I’m glad I don’t have to try and find it this time. So I open the file up to have a look.
The file opens and is filled with lines and lines of different password styled lines. Each of these starting with a different word. I know from the hint that I need the line that starts with
millionth, I can ever scroll through all of the lines until I find it or look for a different way of finding it. Knowing that I can use the grep command to search for content from within a file.
grep -w ./data.txt -e "millionth"
I am now presented with a single line, with the word
millionth, this looks like I have the password for Level 8.
Level 7 Complete
I have hidden the password here, if you are playing along don’t peek! Please! It’s more fun getting it yourself.
Level 8 password
Justin Byrne is a self motivated tech enthusiasts. Spending more than half his life dedicated to the tech industry. He built his first computer at the age of 11, and has been building ever since. His interests have changed across the years from system building to web programming and even a dab of software engineering, and just like his interests, his operating system has changed sometimes more then 4 times a year.