Over The Wire – Bandit 18

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.

As soon as we connect to this challenge, we get kicked out with a pretty message saying Byebye !

Screenshot from 2018-06-26 23-40-09.png

Lucky for us, ssh allows us to specify a command to run as soon as we connect, let’s try that with something easy,  like ls.Screenshot from 2018-06-26 23-41-11.png

Looks like we have a readme file! Not let’s cat it when we connectScreenshot from 2018-06-26 23-42-18.png

Looks like a flag to me!

Leave a comment