OverTheWire - Bandit - Level 18 → Level 19

Warning: This post contains a solution!

Only continue if:
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:

Server: bandit.labs.overthewire.org
Port: 2220
Username: bandit18
Password: kfBf3eYk5BPBRzwjqutbbfE887SVc5Yd

Level Goal is:

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 we know the path to the readme file, we can use ssh to connect to the server and append a command to copy the content of the readme file to a local file called password:

burak@elias:~/OverTheWire/level1819$ ssh bandit18@bandit.labs.overthewire.org -p2220 cat "readme" > password
This is a OverTheWire game server. More information on http://www.overthewire.org/wargames

bandit18@bandit.labs.overthewire.org's password: 
burak@elias:~/OverTheWire/level1819$ ls
password
burak@elias:~/OverTheWire/level1819$ cat password 
IueksS7Ubh8G3DCwVzrTd8rAVOwq3M5x
Show Comments