Bandit Level 19 β Level 20


That s indicates that this file has SetUID bit which will let us run it with the owner privileges, in this bandit20. Lets run it and see how we can use it:
We can run binaries with ./
before it:
./bandit20-do

So maybe we can run commands with this binary, lets try id without it and with it:
id
./bandit20-do id

AS we can see we have bandit20 privileges with this command, now lets get the password:
./bandit20-do cat /etc/bandit_pass/bandit20

Here is the password.
Last updated