Results 1 to 6 of 6
  1. #1
    kibbles18's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    US
    Posts
    860
    Reputation
    5
    Thanks
    127

    help memory editing Steam

    a Steam game i have has values that have different memory each time i restart, such as the ammo memory change from 2D036FE0 to 2D31C734
    can u help me so i can hack it?

  2. #2
    lilneo's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Canada
    Posts
    217
    Reputation
    8
    Thanks
    28
    Use Cheat engine, search manually for the value, if it's green then it's an offset from a module. Double click the address in the list and a box will come up and say <module>.dll+<offset>
    And then you can use c++ to find the address when you inject a dll.
    If it's not green then you need to find the player pointer, if that's the case ask someone else.
    ~lilneo

  3. #3
    kibbles18's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    US
    Posts
    860
    Reputation
    5
    Thanks
    127
    ok so i traced it back to the static address of server.dll+716A34.
    how can i find server.dll value in c++?

  4. #4
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Quote Originally Posted by kibbles18 View Post
    ok so i traced it back to the static address of server.dll+716A34.
    how can i find server.dll value in c++?
    GetModuleHandle() If you have direct memory access. If not, use Module32First & Module32Next

  5. #5
    kibbles18's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    US
    Posts
    860
    Reputation
    5
    Thanks
    127
    this is what i have in my CE table:
    address of server.dll+716A34 (15CD6A34) that holds value 0x26BD1190
    pointer to 26BD1958 (ammo) made with adding address 15CD6A34 (see above) and offsett 7c8.
    how do i use this to get a static address that i can control the ammo with?
    i try this code
    Code:
    #include <stdio.h>
    #include <windows.h>
    #include <iostream>
    #include <iomanip>
    using namespace std;
    
    void getBaseAddy()
    {
    	DWORD baseAddy = (DWORD)GetModuleHandle("server.dll");
    	DWORD ammoAddy = (DWORD)(baseAddy + 716274) + 1992;
    }
    
    BOOL WINAPI DllMain(HINSTANCE module, DWORD dwReason, LPVOID lpvReserved)
    {
       if(dwReason == DLL_PROCESS_ATTACH)
       {
           CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)getBaseAddy, NULL, NULL, NULL);
       }
    return TRUE;
    }
    Last edited by kibbles18; 12-04-2010 at 01:16 PM.

  6. #6
    lilneo's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Canada
    Posts
    217
    Reputation
    8
    Thanks
    28
    https://www.mpgh.net/forum/31-c-c/220...retreiver.html
    There ya go bro.
    put in the module name and the offset and it returns the addy.
    ~lilneo