Results 1 to 3 of 3
  1. #1
    getsuga121's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    39
    Reputation
    10
    Thanks
    39
    My Mood
    Sad

    How would i code c++ for a trainer

    I have the ufo code and i want to know how would i code it via c++ how would i add the memory class whose would i add please help thank you.

  2. #2
    Lovroman's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    9,430
    Reputation
    611
    Thanks
    9,719
    My Mood
    Cheerful
    Quote Originally Posted by getsuga121 View Post
    I have the ufo code and i want to know how would i code it via c++ how would i add the memory class whose would i add please help thank you.
    Code:
    #include "stdafx.h"
    
    DWORD WINAPI MainThread(LPVOID lpArgs)
    {
    WriteProcessMemory(GetCurrentProcess(),(void*)0x0070F979,(PBYTE)"\x6A\x00",2,0);
    WriteProcessMemory(GetCurrentProcess(),(void*)0x007653FA,(PBYTE)"\xB8\x44\xEC\x3B\x03\x90",6,0);
    return 0;
    }
    
    BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
    {
    	if(ul_reason_for_call == DLL_PROCESS_ATTACH)
    	{
    	 DisableThreadLibraryCalls(hModule);
    	 HANDLE hThread = CreateThread(NULL, NULL, MainThread, NULL, NULL, NULL);
         CloseHandle(hThread);
       }
    	return TRUE;
    }
    Memory class ?

  3. #3
    getsuga121's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    39
    Reputation
    10
    Thanks
    39
    My Mood
    Sad
    Thank you i will try after school and i am new to c++

    EDIT i get the error about too many symbols
    Last edited by getsuga121; 08-21-2013 at 05:07 AM.

Similar Threads

  1. [Tutorial] How to make code Dance for ALl Style (MAT AK XShot)
    By PREEMNET in forum Mission Against Terror Hacks & Cheats
    Replies: 6
    Last Post: 06-11-2013, 08:43 AM
  2. How do I code hacks for ca
    By mrhoward84 in forum Combat Arms Coding Help & Discussion
    Replies: 3
    Last Post: 11-07-2010, 05:13 PM
  3. How much would you buy this for
    By komakazee in forum Trade Accounts/Keys/Items
    Replies: 82
    Last Post: 12-02-2009, 08:23 PM
  4. Would Visual Studio 2008 work for making trainers?
    By laserdude45 in forum C++/C Programming
    Replies: 5
    Last Post: 02-05-2008, 08:37 PM
  5. How Would I Search For Boxes?
    By Luigid in forum WarRock - International Hacks
    Replies: 3
    Last Post: 04-23-2007, 10:10 PM