OverTheWire

OverTheWire: Bandit Level 32 → Level 33

Level Goal

Commands you may need to solve this level


> whatis man
man (7) - macros to format man pages
man (1) - an interface to the system reference manuals

> whatis sh
sh (1) - command interpreter (shell)

Helpful Reading Material

Solution

As soon as well login into this level we notice that we not in a bash shell instead we in a shell called as “uppercase shell”

sh -c "<user-input>"
sh -c "$0"
>> $0
$ echo $0
sh
$ ls -la                     
total 28
drwxr-xr-x 2 root root 4096 May 7 2020 .
drwxr-xr-x 41 root root 4096 May 7 2020 ..
-rw-r--r-- 1 root root 220 May 15 2017 .bash_logout
-rw-r--r-- 1 root root 3526 May 15 2017 .bashrc
-rw-r--r-- 1 root root 675 May 15 2017 .profile
-rwsr-x--- 1 bandit33 bandit32 7556 May 7 2020 uppershell
$ whoami
bandit33
$ id
uid=11033(bandit33) gid=11032(bandit32) groups=11032(bandit32)
$ cat /etc/bandit_pass/bandit33
c9c3199ddf4121b10cf581a98d51caee

--

--

Software Developer, Cloud Engineer, Cybersecurity Enthusiast, Insatiable Learner https://notes.davidvarghese.dev

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store