Good workshop to learn privilege escalation: https://github.com/sagishahar/lpeworkshop
Windows
Linux
FreeBSD
Solaris
Automated tools
Metasploit Modules
Password Dumping