I searched for sudo permission that the user John has and found that It has permission to run the find command as a sudo user.
I will use the below payload and switch to the root user.
Last updated 1 year ago
sudo find . -exec /bin/sh \; -quit