Shellcode is a project mainly written in C, it's free.
A collection of shellcodes for BSD and Linux for exploit development
A collection of shellcodes for writing exploits. Assembly code intel syntax. Use nasm assemble them.
This might be old, but I spent a long time optimizing this code for size.
BSD:
Linux: