How to run unmanaged executable from memory rather than disc

前端 未结 4 1237
梦如初夏
梦如初夏 2020-12-15 12:23

I want to embed a command-line utility in my C# application, so that I can grab its bytes as an array and run the executable without ever saving it to disk as a separate fil

4条回答
  •  感情败类
    2020-12-15 12:41

    Take a look at the "In Memory" section of this paper. Realize that it's from a remote DLL injection perspective, but the concept should be the same.

    Remote Library Injection

提交回复
热议问题