shecoject is a tool written in python3, which can be used to package raw metasploit-generated raw files directly into the pyinstaller package or you can use this tool to generate normal raw files.
Use the ctypes module to inject the shellcode into the ram. The persistence method for the use of winreg module python3 in the registry to write this program boot and self-copy to the user-made path
$ git clone https://github.com/curtis992250/shecodject.git $ python3 setup.py
$ python3 shecodeject.py