In the below article we provide a list of several exploits to known vulnerabilities in Solaris, as well as exploit templates for stack and heap overflows.
Solaris Real World Exploits:
* ldso_ex.c v0.03 LD_PRELOAD Exploit. Working on Solaris 8/9. (CAN-2003-0609)
* padxploit.c v0.6 Remote login exploit via X25 pad. Working on Solaris 2.6/7/8. (CVE-2001-0797)
Solaris exploit templates: Stack Overflows
* hole.c - Stack overflow vulnerable program.
* exhole_stack.c - Exploit returning into environment.
* exhole_execl.c - Exploit returning into execl of libc.
* exhole_strcpy.c - Exploit returning into strcpy for copy the shellcode on a RWX memory segment and execute it.