Level Goal
The password for the next level is stored in a file readme in the homedirectory. Unfortunately, someone has modified .bashrc to log you out when you log in with SSH.

Commands you may need to solve this level: ssh, ls, cat

Walkthrough
We where already logged into 18. The bashrc will log us out when we are just logged in. Lets see if we can give supply an command in the ssh to cat the readme. We normally log in in the home directory.
ssh bandit18@bandit.labs.overthewire.org -p 2220 cat readme

It works, we get the password op bandit 19 (I think)
IueksS7Ubh8G3DCwVzrTd8rAVOwq3M5x

Lets ssh to bandit19 to check if the password is correct and it is!

Leave a Reply

Your email address will not be published. Required fields are marked *