using nim to inject shellcode via direct syscalls
Compile generate.nim
:
nim c generate.nim
generate a raw shellcode using msfvenom or cobalt strile..
generate.exe -f shellcode.bin
this will produce a "main.exe" which is the backdoor, place it whereever you want.