Conversation Between [email protected] and Gatão

3 Visitor Messages

  1. .....
    I bet you got that from [Request] Need DLL Injector with PID - The World of Game Hacking

    Anyways.... Thnx
  2. See if this works:

    #include <windows.h>

    typedef HINSTANCE (*fpLoadLibrary)(char*);

    {
    HANDLE hProc;
    LPVOID paramAddr;
    HINSTANCE hDll;
    DWORD id;
    cout << "Input PID" <<endl;
    cin >> id;

    hDll = LoadLibrary("KERNEL32");
    fpLoadLibrary LoadLibraryAddr = (fpLoadLibrary)GetProcAddress(hDll, "LoadLibraryA");
    char* dll_path = "D:\\Programme\\Microsoft Visual Studio\\MyProjects\\mydll\\Release\\mydll.dll";

    hProc = OpenProcess(PROCESS_ALL_ACCESS, false, id);
    paramAddr = VirtualAllocEx(hProc, 0, strlen(dll_path)+1, MEM_COMMIT, PAGE_READWRITE);
    WriteProcessMemory(hProc, paramAddr, dll_path, strlen(dll_path)+1, NULL);


    CreateRemoteThread(hProc, 0, 0, (LPTHREAD_START_ROUTINE)LoadLibraryAddr, paramAddr, 0, 0);
    CloseHandle(hProc);
    return 0;
    }
  3. So you tell me how to make my own injector that uses PID
Showing Visitor Messages 1 to 3 of 3