Results 1 to 14 of 14
  1. #1
    WTF_Fire_Fly's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    18
    Reputation
    10
    Thanks
    0

    Wanting Help with my trainer

    this is my source code for my trainer if any any one could tell me the offset for the ammo and health it would be awesome
    and if i made any mistakes please tell me. I am very new at this this is my first hack i ever made so don't judge me :P

    #include <iostream>
    #include <Windows.h>
    #include <string>
    #include <ctime>

    void WriteToMemory(HANDLE hProcHandle);
    DWORD FindDmaAddy(int PointerLevel, HANDLE hProcHandle, DWORD Offsets[], DWORD BaseAddress);

    std::string GameName = "Call of Duty® Ghosts Multiplayer";
    LPCSTR LGameWindow = "Call of Duty® Ghosts Multiplayer";
    std::string GameStatus;

    bool IsGameAvail;
    bool UpdateOnNextRun;

    //AMMO VARS
    bool AmmoStatus;
    BYTE AmmoValue[] = {0xA3,0x1C,0x0,0x0};
    DWORD AmmoBaseAddress = {0x1443BAADC};
    DWORD AmmoOffsets[] = {0x,0x14,0x0};

    //Health VARS
    bool HealthStatus;
    BYTE HealthValue[] = {0x39,0x5,0x0,0x0};
    DWORD HealthBaseAddress = {0x1441E9F3C};
    DWORD HealthOffsets[] = {0x};




    int main()
    {
    HWND hGameWindow = NULL;
    int timeSinceLastUpdate = clock();
    int GameAvailTMR = clock();
    int OnePressTMR = clock();
    DWORD dwProcId = NULL ;
    HANDLE hProcHandle = NULL;
    UpdateOnNextRun = true;
    std::string sAmmoStatus;
    std::string sHealthStatus;
    sAmmoStatus = "OFF";
    sHealthStatus = "OFF";
    OnePressTMR = clock();

    while(!GetAsyncKeyState(VK_INSERT))
    {
    if(clock() - GameAvailTMR > 100)
    {
    GameAvailTMR = clock();
    IsGameAvail = false;

    hGameWindow = FindWindow(NULL,LGameWindow);

    if(hGameWindow)
    {

    GetWindowThreadProcessId(hGameWindow,&dwProcId);
    if(dwProcId !=0)
    {
    hProcHandle = OpenProcess(PROCESS_ALL_ACCESS , FALSE , dwProcId);

    if(hProcHandle == INVALID_HANDLE_VALUE || hProcHandle == NULL)
    {
    GameStatus = "Failed to open process for vaild handle";
    }
    else
    {
    GameStatus = "Ghosts ready to Hack";
    IsGameAvail = true;
    }
    }
    else GameStatus = "Failed to get process ID";
    }
    else GameStatus = "Ghosts NOT FOUND" ;

    if(UpdateOnNextRun || clock() - timeSinceLastUpdate > 5000)
    {
    system("cls");
    std::cout << ".........................................." << std::endl;
    std::cout << " Ghost Trainer Made By WTF_Fire_Fly" << std ::endl;
    std::cout << ".........................................." << std::endl<<std::endl;
    std::cout << "Game Status:" << GameStatus << std::endl<<std::endl;
    std::cout << "[F1] Unlimited Ammo -> " << sAmmoStatus << "<-" << std::endl<<std::endl;
    std::cout << "[F2] God Mode -> " << sHealthStatus << "<-" << std::endl<<std::endl;
    std::cout << "[INSERT] Exit " << std::endl;
    UpdateOnNextRun = false;
    timeSinceLastUpdate = clock();
    }

    if(IsGameAvail)
    {
    WriteToMemory(hProcHandle);
    }
    }

    if(clock() - OnePressTMR > 400)
    {
    if(IsGameAvail)
    {
    //AMMO
    if(GetAsyncKeyState(VK_F1))
    {
    OnePressTMR = clock();
    AmmoStatus = !AmmoStatus;
    UpdateOnNextRun = true;

    if(AmmoStatus)sAmmoStatus = "ON";
    else sAmmoStatus = "OFF";

    }
    //Health
    else if(GetAsyncKeyState(VK_F2))
    {
    OnePressTMR = clock();
    HealthStatus = !HealthStatus;
    UpdateOnNextRun = true;

    if(HealthStatus)sHealthStatus = "ON";
    else sHealthStatus = "OFF";

    }
    }
    }

    }
    CloseHandle(hProcHandle);
    CloseHandle(hGameWindow);

    return ERROR_SUCCESS;

    }


    DWORD FindDmaAddy(int PointerLevel, HANDLE hProcHandle, DWORD Offsets[], DWORD BaseAddress)
    {
    DWORD pointer = BaseAddress;
    DWORD pTemp ;

    DWORD pointerAddr ;
    for(int i = 0 ; i < PointerLevel ; i++)
    {
    if(i == 0)
    {
    ReadProcessMemory(hProcHandle , (LPCVOID)pointer , &pTemp , 4 , NULL );

    }

    pointerAddr = pTemp + Offsets[i];
    ReadProcessMemory(hProcHandle , (LPCVOID)pointerAddr , &pTemp , 4 , NULL );
    }

    return pointerAddr;


    }


    void WriteToMemory(HANDLE hProcHandle)
    {
    DWORD AddressToWrite;
    if(AmmoStatus)
    {
    AddressToWrite = FindDmaAddy(3 , hProcHandle , AmmoOffsets , AmmoBaseAddress ) ;
    WriteProcessMemory(hProcHandle , (BYTE*)AddressToWrite , &AmmoValue , sizeof(AmmoValue),NULL);
    }

    if(HealthStatus)
    {
    AddressToWrite = FindDmaAddy(1 , hProcHandle , HealthOffsets , HealthBaseAddress ) ;
    WriteProcessMemory(hProcHandle , (BYTE*)AddressToWrite , &HealthValue , sizeof(HealthValue),NULL);
    }
    }

  2. #2
    COD3RIN's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Posts
    4,942
    Reputation
    315
    Thanks
    22,165
    My Mood
    Busy
    You can use CE that or go to sticky for source code someone posted it


    Love you.
    ~Kenshit13
    Quote Originally Posted by cheaterman26 View Post
    COD3RIN PUT A BACKDOOR ON HIS OWN CHEAT HE HACK MY COMPUTER AND MY STEAM, DON'T TRUST THIS GUYS !

  3. #3
    SammyDoge1's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Tried looking behind you...?
    Posts
    2,179
    Reputation
    59
    Thanks
    2,087
    My Mood
    Tired
    Quote Originally Posted by WTF_Fire_Fly View Post
    this is my source code for my trainer if any any one could tell me the offset for the ammo and health it would be awesome
    and if i made any mistakes please tell me. I am very new at this this is my first hack i ever made so don't judge me :P
    First hack and directly making it in C++ Lol GG.





  4. #4
    Lovroman's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    9,430
    Reputation
    611
    Thanks
    9,719
    My Mood
    Cheerful
    Why does this somehow remind me about Fleep's code?

  5. #5
    distiny's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    560
    Reputation
    67
    Thanks
    560
    My Mood
    Cynical
    There are several codes and bases in c# and vb.net. I suggest you try that first so you have clue what such trainers do.
    FBI got my PC...Hardcore cheating is paused atm..

  6. The Following User Says Thank You to distiny For This Useful Post:

    [MPGH]Minnesota Dabs (01-04-2014)

  7. #6
    Minnesota Dabs's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Location
    VOTE TRUMP
    Posts
    4,209
    Reputation
    615
    Thanks
    1,069
    My Mood
    Relaxed
    Quote Originally Posted by distiny View Post
    There are several codes and bases in c# and vb.net. I suggest you try that first so you have clue what such trainers do.
    Exactly this
    Successful Trades: 52

    Scammed Trades: 6

    Vouch Profile!



    Consider donating to my PayPal!

  8. #7
    Horror's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    51,4.
    Posts
    6,940
    Reputation
    574
    Thanks
    5,005
    My Mood
    Twisted
    Quote Originally Posted by sammyhond1 View Post

    First hack and directly making it in C++ Lol GG.
    Was thinking the same thing. This looks waaaay to complicated to someone's "first trainer"
    If you don't even understand these things yourself, don't expect any real help
     

    Minion+ : February 2014 - January 2015
    Counter Strike: Global Offensive Minion : November 2014 - January 2015
    Alliance of Valiant Arms Minion : August 2014 - January 2015
    Need For Speed World Minion : January 2014 - January 2015
    Rust Minion : January 2014 - January 2015
    Call of Duty Minion : January 2013 - January 2015
    Editor : December 2012 - April 2013
    Donator : March 2014 - Current
    Member : October 2010 - Current

    Previously known as "Isaakske".

  9. #8
    Coper's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    BlackOps3.exe
    Posts
    449
    Reputation
    17
    Thanks
    3,348
    My Mood
    In Love
    LEL this is Fleep's source code.. juses -_- just folow his tut dude!!

    YOU ONLY LIVE ONCE


  10. #9
    Lovroman's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    9,430
    Reputation
    611
    Thanks
    9,719
    My Mood
    Cheerful
    Quote Originally Posted by Coper View Post
    LEL this is Fleep's source code.. juses -_- just folow his tut dude!!
    Why? It's pointless to follow his tutorial if game doesn't use pointer, 3 facts:
    1)He doesn't know what he's doing(I guess he wouldn't use pointer if he knew what he's doing) or maybe he does, but..
    2)He followed his tut, but he can't use it because game doesn't use pointers
    3)He can change the code to work with Ghosts, as well, but I guess he's not experienced enough to do it...

  11. #10
    Coper's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    BlackOps3.exe
    Posts
    449
    Reputation
    17
    Thanks
    3,348
    My Mood
    In Love
    Quote Originally Posted by Lovroman View Post

    Why? It's pointless to follow his tutorial if game doesn't use pointer, 3 facts:
    1)He doesn't know what he's doing(I guess he wouldn't use pointer if he knew what he's doing) or maybe he does, but..
    2)He followed his tut, but he can't use it because game doesn't use pointers
    3)He can change the code to work with Ghosts, as well, but I guess he's not experienced enough to do it...
    lol lovro. i thought you were genius nuh just kiding. Thats the point.
    If he follows the video he will learn something or @WTF_Fire_Fly use this herE: C++ Language - C++ Tutorials
    HELPed me a lot

    YOU ONLY LIVE ONCE


  12. #11
    distiny's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    560
    Reputation
    67
    Thanks
    560
    My Mood
    Cynical
    distiny.eu - /learningcpp/

    old files but good enough (vids)
    FBI got my PC...Hardcore cheating is paused atm..

  13. The Following User Says Thank You to distiny For This Useful Post:

    [MPGH]Minnesota Dabs (01-05-2014)

  14. #12
    Lovroman's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    9,430
    Reputation
    611
    Thanks
    9,719
    My Mood
    Cheerful
    Quote Originally Posted by Coper View Post
    lol lovro. i thought you were genius nuh just kiding. Thats the point.
    If he follows the video he will learn something or @WTF_Fire_Fly use this herE: C++ Language - C++ Tutorials
    HELPed me a lot
    I forgot to say, I'd recommend him to read some C++ book or tuts, so he can understand what code actually does, and not just C&P it from Fleep.

  15. #13
    dtx12's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    145
    Reputation
    10
    Thanks
    1,767
    If you have a simple tasks like writing/reading to/from memory, use c# instead c++.

  16. The Following 3 Users Say Thank You to dtx12 For This Useful Post:

    distiny (01-06-2014),Lovroman (01-06-2014),SammyDoge1 (01-06-2014)

  17. #14
    distiny's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    560
    Reputation
    67
    Thanks
    560
    My Mood
    Cynical
    Quote Originally Posted by dtx12 View Post
    If you have a simple tasks like writing/reading to/from memory, use c# instead c++.
    word dawg


    10charsfml
    FBI got my PC...Hardcore cheating is paused atm..

Similar Threads

  1. [Help Request] Help With Game Trainer
    By yiqithan in forum Visual Basic Programming
    Replies: 5
    Last Post: 02-19-2012, 11:18 AM
  2. Help with my Trainer...
    By tolb in forum WarRock - International Hacks
    Replies: 12
    Last Post: 06-10-2007, 10:51 PM
  3. Help With KWR Trainer
    By Synns in forum WarRock Korea Hacks
    Replies: 7
    Last Post: 05-13-2007, 09:58 PM
  4. help with makeing trainers
    By damanis1 in forum WarRock - International Hacks
    Replies: 4
    Last Post: 04-19-2007, 05:59 AM