C++: Injecting 32 bit targets from 64 bit process

后端 未结 3 2166
一整个雨季
一整个雨季 2020-12-15 13:36

I have written a DLL-Injector in C++ recently, for which the requirements were the following

  • The INJECTING PROCESS (let\'s call it the \'Injec
3条回答
  •  半阙折子戏
    2020-12-15 14:21

    I stumbled upon this thread looking for a solution for the same problem.

    So far I'm inclined to use another simpler solution. To obtain a 32-bit kernel proc address, the 64-bit process can just execute a 32-bit program that will look up the proc addresses for us:

    #include 
    
    int main(int argc, const char**)
    {
        if(argc > 1)
            return (int) LoadLibraryA;
        else
            return (int) GetProcAddress;
    }
    

提交回复
热议问题