RunPE c++ only works with 32 console

前端 未结 1 1299
日久生厌
日久生厌 2021-01-23 15:19

I can read an exe from resource and run it from memory without writing on disk (aka RunPE).

My application is a win32 Console.

I can run other win32 console but

相关标签:
1条回答
  • 2021-01-23 15:34

    1.gui applications only run on memory of other gui applications.as well cui application only run on memory of other cui application. because cui application on new windows run by conhost and not direct.

    2.for run .net application from memory in c++ you must repair import table and other thing.to run .net application from .net is simply with

    Assembly Lasm = Assembly.Load(bin);
    MethodInfo method = Lasm.EntryPoint;
    object obj = Lasm.CreateInstance(method.Name);
    method.Invoke(obj, null);
    
    0 讨论(0)
提交回复
热议问题