OverTheWire - Bandit - Level 26 → Level 27
1.) you want to see a possible alternative solution or
2.) you are stuck and need a hint!
Connect to the server using the following credentials:
Level Goal is:
Good job getting a shell! Now hurry and grab the password for bandit27!
Important here is, that we need to stay in the shell spawned in the last level or spawn a shell again logging in with bandit25. Logging in using the above credentials is not possible because of the changed shell used (
There is an executable named
bandit27-do in the home folder of user bandit26.
From the filename it can be assumed that this executable executes commands as bandit27 user. Running the executable confirms that assumption.
Running the executable with the cat command gives us the password.