- Enumerate services run as root:
ps aux | grep "^root" - Try to get the version of the app (for eg
mysqld --version) ordpkg -l | grep programname / rpm –qa | grep programname. - Search for exploit:
searchsploit xx(or exploit-db) - Follow the instructions.