shell.yml is an ansible playbook you can use to make linux privilege escalation attack from user A to user B.
User A must have sudo permessions to run ansible-playbook as User B
- Uses sudo to make a copy of /bin/bash as User B
- Adds SUID Permessions to it, so we can execute it as User B
- Run
sudo /usr/bin/ansible-playbook shell.yml - Run
./bash -p