BB

technology and craziness.

BB

technology and craziness.

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: kfBfxxxxxxxxxxxxxxxxxxxxxxxxxxxx

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:

1
2
3
4
5
6
7
8
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 password: 
burak@elias:~/OverTheWire/level1819$ ls
password
burak@elias:~/OverTheWire/level1819$ cat password 
Iuekxxxxxxxxxxxxxxxxxxxxxxxxxxxx