injecting a dll with createremotethread

后端 未结 1 773
南方客
南方客 2021-01-17 06:43

how does createremotethread execute a dll inside a process? One of the parameters it uses is the loadlibraryA. So I get the part where it executes the loadlibrary function w

相关标签:
1条回答
  • 2021-01-17 07:37

    Just like any other LoadLibrary call, the dynamic loader will call into your injected DLL's DllMain function with the DLL_PROCESS_ATTACH reason code. The code in your DllMain can take it from there, though I would strongly advise against doing too much from within DllMain itself due to the loader lock.

    0 讨论(0)
提交回复
热议问题