So uh, I’m gonna do some CTFs now.

I’m using OverTheWire to learn the basics. I’ve already gone through Bandit and found it to be an excellent refresher of basic Linux commands. So I thought I’d do a writeup on them.

Level Goal

The password for the next level is stored in a file called readme located in the home directory. Use this password to log into bandit1 using SSH. Whenever you find a password for a level, use SSH (on port 2220) to log into that level and continue the game.

Solution

We’re given a username/password combo of bandit0, and we need to use port 2220 to SSH into bandit.labs.overthewire.org.

We’re prompted for a password, so input bandit0.

Oh boy. We’ve got the password for bandit1.