/* 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)(); }