exit() shellcode in 5 bytes for Linux x86.
76576c3d47bad32ea98c4335a7cbff570702b9346536243936ca480160416806
/* By Kris Katterjohn 8/29/2006
*
* 5 byte shellcode to exit, because the exit status isn't always important
*
* for Linux/x86
*
*
*
* section .text
*
* global _start
*
* _start:
*
* push byte 1
* pop eax
* int 0x80
*/
main()
{
char shellcode[] = "\x6a\x01\x58\xcd\x80";
(*(void (*)()) shellcode)();
}