Level 19 ->20
bandit19@bandit:~$ ls -la
total 28
drwxr-xr-x 2 root root 4096 May 7 20:14 .
drwxr-xr-x 41 root root 4096 May 7 20:14 ..
-rwsr-x--- 1 bandit20 bandit19 7296 May 7 20:14 bandit20-do
-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
bandit19@bandit:~$
bandit19@bandit:~$ ./bandit20-do
Run a command as another user.
Example: ./bandit20-do id
bandit19@bandit:~$ ./bandit20-do cat /etc/bandit_pass/bandit20
GbKkXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Password = GbKkXXXXXXXXXXXXXXXXXXXXXXXXXXXX