So this basically tells us hey its getting a enviorment variable and checking if admin is one and if it is it gives us a shell as root so all we have to do is add one enviornment variable as admin and gg we will have our shell.