Results 1 to 1 of 1
  1. #1
    Vitrix Maggot
    Vitrix Maggot is offline
    Member-in-training Vitrix Maggot's Avatar
    Join Date
    2013 Apr
    Location
    Brasil
    Posts
    58
    Thanks
    0
    Thanked 43 Times in 24 Posts
    Rep Power
    0

    Creating Different Injector

    Alguns injetores de dll comuns não funcionam no AP então, porque fazer um injector comum se você pode fazer melhor ? :P
    Esse injetor foi codado 100% por mim então se for copiar ou utilizar o código favor, colocar os créditos!
    Depois de abrir seu projeto e deixá-lo direitinho coloque as seguintes funções:


    DWORD GetPIDbyName(char* szProcess)
    {
    HANDLE hSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
    PROCESSENTRY32 PE;
    PE.dwSize = sizeof(PE) ;
    Process32First(hSnap, &PE);

    while (Process32Next(hSnap, &PE))
    {
    char Converted[100] = "\0";
    wcstombs(Converted, PE.szExeFile, sizeof(Converted));
    if (strcmp(Converted, szProcess) == 0)
    {
    return PE.th32ProcessID;
    }
    }
    return 0;
    }
    DWORD GetModuleBaseAddress(DWORD PID, char* szModule)
    {
    MODULEENTRY32 ME;
    ME.dwSize = sizeof(ME);
    HANDLE hSnapy = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, PID);
    Module32First(hSnapy, &ME);
    while (Module32Next(hSnapy, &ME))
    {
    char Converted[100] = "\0";
    wcstombs(Converted, ME.szModule, sizeof(Converted));
    if (strcmp(Converted, szModule) == 0)
    {
    return (DWORD)ME.hModule;
    }
    }
    }
    E por último a InjectDll Modificada por mim para o Arcade Protector 2.2.3.2 =D

    bool injectDLL(int PID, char * dllPath, DWORD Buffr)
    {
    HANDLE process = OpenProcess(PROCESS_ALL_ACCESS, 0, PID);
    LPVOID addr = VirtualAllocEx(process, NULL, strlen(dllPath) + 1, MEM_RESERVE | MEM_COMMIT, PAGE_EXECUTE_READWRITE);
    BOOL result = WriteProcessMemory(process, addr, dllPath, strlen(dllPath) + 1, NULL);

    HANDLE thread = CreateRemoteThread(process, NULL, 0, (LPTHREAD_START_ROUTINE)Buffr, addr, 0, NULL);
    if(thread == NULL)
    {
    printf("Error: CreateRemoteThread %u\n",GetLastError());
    return 0;
    }



    WaitForSingleObject(thread,INFINITE);
    CloseHandle(thread);

    return true;
    }
    Após feito isso, vamos a parte que faz o Injetor Funcionar ^^

    Coloque isso em um botão ou dentro da rotina do que quiser e.e
    DWORD PID = GetPIDbyName("Game.exe");
    if (PID == 0)
    {
    printf("\nPlease open Game first\n");
    system("PAUSE");
    return 0;
    }
    HANDLE hProc = OpenProcess(PROCESS_ALL_ACCESS, FALSE, PID);
    DWORD BaseAddress = GetModuleBaseAddress(PID, "ÐarkCoder.dll"); // Aqui você colocar o nome da dll do PT no meu caso o nome do pt é ÐarkCoder
    DWORD Buffer;
    ReadProcessMemory(hProc,(void*)(BaseAddress + 0x81FE4),&Buffer,4,NULL);
    injectDLL(PID,"Caminho da Dll aqui =D",Buffer);
    CloseHandle(hProc);

    OBS: Só funciona com Arcade Protector
    Tenho certeza que poucas pessoas irão entender esse code muahaha e.ê
    Bom aprendizado!

    Abraços, Vitrix Maggot.
    I admire most other programmers not paid any dick!!

    Admiro outros Programadores mais nao pago pau pra nenhum !!


    Skype: Vitor Monteiro

  2. The Following User Says Thank You to Vitrix Maggot For This Useful Post:


Similar Threads

  1. [Help] hope of creating a new SM build(if there isn't one yet)
    By kitnoman in forum Dragon Nest
    Replies: 2
    Last Post: 2012-08-22, 01:55 AM
  2. [Help] Helps in creating Fishbot
    By Omnitrix in forum Aika Bots, Hacks, Cheats
    Replies: 1
    Last Post: 2012-08-11, 05:29 PM
  3. [Tutorial] Creating a Partition Correctly
    By JeanBR in forum Aika Guides, Tutorials
    Replies: 5
    Last Post: 2012-07-12, 02:32 PM
  4. [Hack] Creating the set Kinary 2
    By vinic in forum Aika Online
    Replies: 0
    Last Post: 2012-06-14, 07:27 PM
  5. [Delphi] Creating DLLs
    By Dwar in forum Delphi
    Replies: 0
    Last Post: 2010-11-04, 09:58 AM
Visitors found this page by searching for:

source injetor in c

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •