Bandit CTF
General Instructions :
1. You’ll require a terminal to solve all of these problems as instructed by your teacher.
2. If you’re using linux/mac then you can easily pop up the terminal and start working from there.
3. If you’re using windows, then you can try to ssh in the command line, using cmd.
4. If ssh doesn’t work on the command line, you might need to download an external application like Putty to ssh and then start working. (If you’re using Putty, then you might need to skip level0, because connecting to ssh in Putty can be done manually using the GUI.
5. Once you’ve successfully connected to the server using ssh, then what OS you’re using doesn’t matter. All the commands will be the same hereafter, don’t worry.
6. I’ve included comments starting with “ // ” almost after every command, don’t copy the comments and execute along with the command, they’re purely for your better understanding.
Solutions :
1. Level 0 (Login to game using ssh)
Using Putty GUI
If you’re using putty, you’ll get the above screen. In the hostname field, enter
[email protected] and in the Port field enter 2220. Once done, you’ll be getting a terminal shell and you need to enter the password.
Password : bandit0
--------------------------------------------------------------------------------
If you’re using mac/linux terminal, then do the following
i) ssh
[email protected] -p 2220
ii) Enter password : bandit0
2. Level 0->1
i) cat readme
// Upon doing the above command, you’ll see a password, copy that and store it somewhere. It’s the password for the next round.
ii) exit
// This is used to exit from the current shell, we’ll be doing this after we obtain the flag in every level
iii) ssh
[email protected] -p 2220
// Enter the copied password
3. Level...