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.
1 |
$ ssh [email protected] -p 2220 |
We’re prompted for a password, so input bandit0.
1 2 |
[email protected]:~$ cat readme boJ9jbbUNNfktd78OOpsqOltutMc3MY1 |
Oh boy. We’ve got the password for bandit1.