BB

technology and craziness.

BB

technology and craziness.

OverTheWire - Bandit - Level 32 → Level 33

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: bandit32
Password: 56a9xxxxxxxxxxxxxxxxxxxxxxxxxxxx

Level Goal is:

After all this git stuff its time for another escape. Good luck!

Once logged in, we are welcomed by the message “WELCOME TO THE UPPERCASE SHELL”.

1
2
WELCOME TO THE UPPERCASE SHELL
>>

A few attempts show us that everything we enter is converted to uppercase letters.

1
2
3
4
5
6
7
>> ls
sh: 1: LS: not found
>> ..
sh: 1: ..: Permission denied
>> cat
sh: 1: CAT: not found
>>

As commands that could help us to solve this level, sh and man are given. After some googling and reading the man page I came across “$0” which allows us to invoke a shell.
The next steps are simple, we print the contents of the file bandit33 under /etc/bandit_pass/bandit33.

1
2
3
4
5
>> $0
$ echo $0
sh
$ cat /etc/bandit_pass/bandit33
c9c3xxxxxxxxxxxxxxxxxxxxxxxxxxxx

References