Results 1 to 1 of 1
  1. #1
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,106

    What do I do wrong?

    Code:
       
       char DLL_NAME[MAX_PATH] = {0}; 
       GetFullPathName("mpgh-cf.dll", MAX_PATH, DLL_NAME, NULL);  
       HANDLE Proc; 
       HMODULE hLib; 
       char buf[50] = {0}; 
       LPVOID RemoteString, LoadLibAddy; 
       DWORD pID = GetTargetThreadIDFromProcName("crossfire.exe");
       Proc = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pID); 
       LoadLibAddy = (LPVOID)GetProcAddress(GetModuleHandle("kernel32.dll"), "LoadLibraryA"); 
       RemoteString = (LPVOID)VirtualAllocEx(Proc, NULL, strlen(DLL_NAME), MEM_RESERVE | MEM_COMMIT, PAGE_READWRITE);
       WriteProcessMemory(Proc, (LPVOID)RemoteString, DLL_NAME, strlen(DLL_NAME), 0);  
       CreateRemoteThread(Proc, 0, 0, (LPTHREAD_START_ROUTINE)LoadLibAddy, (LPVOID)RemoteString, 0, 0);
       CloseHandle(Proc); 
       cout << "\n PID= " << pID << "\n Proc= " << Proc << "\n LoadLibAddy= " << LoadLibAddy << "\n RemoteString= " << RemoteString << "\n DLL_NAME= " << DLL_NAME << "\n";
       system("pause");
       return true;
    Output from the cout is:
    PID= 4280
    Proc= 0x2bfc
    LoadLibAddy= 0x76944bc6
    RemoteString= 0x190000
    DLL_NAME= C:\Users\Admin\Desktop\mpgh-cf.dll

    The inject fails all the time :S (He doesn't inject)

    Does some one know what I am doing wrong?
    Last edited by Hero; 10-26-2013 at 10:15 AM.

Similar Threads

  1. What the fuck is wrong with my monitore
    By radnomguywfq3 in forum Suggestions, Requests & General Help
    Replies: 2
    Last Post: 12-06-2007, 08:03 PM
  2. WHAT THE FUCK IS WRONG WITH ME
    By radnomguywfq3 in forum Flaming & Rage
    Replies: 18
    Last Post: 11-29-2007, 09:15 PM
  3. what did i do wrong?
    By mpghhackersrock123 in forum Visual Basic Programming
    Replies: 10
    Last Post: 10-11-2007, 04:35 PM
  4. What did I do wrong???
    By ltkort213 in forum WarRock - International Hacks
    Replies: 7
    Last Post: 06-11-2007, 08:50 AM
  5. What am i doing wrong?
    By Elliwood in forum WarRock - International Hacks
    Replies: 13
    Last Post: 05-28-2007, 09:25 AM