Bandit Level 19

OverTheWire-Level Directory
Previous Level: 18

Level 19 Fight!

If you are currently in a level type “logout”

Now type “ssh bandit19@bandit.labs.overthewire.org -p 2220”
Password:”IueksS7Ubh8G3DCwVzrTd8rAVOwq3M5x”
We are now into level 19

For this level we are told

“To gain access to the next level, you should use the setuid binary in the homedirectory. Execute it without arguments to find out how to use it. The password for this level can be found in the usual place (/etc/bandit_pass), after you have used the setuid binary.”

Lets try to run this file

“./bandit20-do “

This simple responds with

“Run a command as another user. Example: ./bandit20-do id “

Lets try to cat the file we need

“./bandit20-do cat /etc/bandit_pass/bandit20”

We now simple get the password as a response

The password is “GbKksEFF4yrVs6il55v6gwY5aVje5f0j”

Once again we can use
“ssh bandit20@bandit.labs.overthewire.org -p 2220”
and the password we just found to login to the next level

Next Level: 20