#Bandit games password
We are informed that the password for the next level is stored inside a file named spaces in this filename. We will use it to get an SSH connection as bandit2. Since we found the password for the user bandit2. , This will help us to read the password stored as shown in the given figure.
So, we will prefix the command with the path. If we directly use cat command, it won’t be able to understand that hyphen is a file name. As cat command considers -(hyphen) as stdin/Stout. As the file is named -(hyphen) we won’t be able to read it simply by cat command. Now comes the part where we have to read the file. We are informed that the password for the next level is stored inside a file named -(hyphen). After that, we are going to use the password to login into next level using SSH ls -la Now to read the password we will use the cat command. We use the ls command to list the files in the current directory. After finding that file, we need to read the password stored inside that file. Our target is to find a file named readme. To find that password, we are going to list files in the directory. Now, from the bandit0 shell, we need to find the password for logging as the next user. This level doesn’t require anything else other than logging in. We used the above information to login using ssh as shown in the given image. We got the required information from reading the instruction page. This is going to teach players the usage of SSH command. It teaches us to connect to a host using SSH. It will give us access to the next level. Overthewire – Bandit Walkthrough (21-34) Objectiveįind the password file. Get the solutions of other levels from below.
To play this war-game, go to the Bandit website by clicking here. It teaches the basics of most Linux commands in a fun and challenging way. Absolute Beginners are the target audience. OverTheWireOrganization hosts this war-game. Today, we will play a war-game called Bandit.