Results 1 to 8 of 8
  1. #1
    gcflames12's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    wada
    Posts
    181
    Reputation
    10
    Thanks
    24

    How to memory hack in a D3D enviroment

    Credits:
    ***-Cobra // for teaching me how to do this, and for teaching me how to hack.

    This is how i was taught to do this. their is also a tutorial like this from cobra on D x T. I was taught this in D3D8 but here is it in D3D9.

    At the top of d3d9dev.cpp we need to make a handle.

    Code:
    HANDLE CA; // this is what i use u can change it.
    Then Search for Initialize()

    Then add this to it. Call this in endscene too,to make sure we still have the current process.

    Code:
    CA = GetCurrentProcess();
    now when you do ReadProcessMemory or WriteProcessMemory,we have our mem to read and write also.

    Code:
    #define GlassWalls 0x00000000  //define your address here with the HANDLE
    
    CA = GetCurrentProcess();
    ReadProcessMemory(Wrrk,(LPVOID*)(DWORD)GlassWalls,&v, sizeof(v), NULL);
    Now we use memcpy for a second option.

    Code:
    #define GlassWalls 0x00000000  //<<<<<<define your address up top somewere with the HANDLE
    
    
    void GlassWalls()
    {
    long t=0;
    unsigned long Protection;
       VirtualProtect((void*)GlassWalls, sizeof(t), PAGE_READWRITE, &Protection);
       memcpy((void*)GlassWalls, &t , sizeof(t));
     VirtualProtect((void*)GlassWalls, sizeof(t), Protection, 0);
    
     VirtualProtect((void*)GlassWalls2, sizeof(t), PAGE_READWRITE, &Protection);
       memcpy((void*)GlassWalls2, &t , sizeof(t));
     VirtualProtect((void*)GlassWalls2, sizeof(t), Protection, 0);
    }
    now to use this with a hotkey.


    Code:
    ////up top bool your hack bool means true or false///
    
    bool G_Walls;
    
    
    /////in End Scene/////Do the hotkey and hack
    
        if( GetAsyncKeyState( VK_NUMPAD1)&1 )
    G_Walls = !G_Walls;  ////this tells it on or off
    
    if (G_Walls)  ////if H_Spawn is true  
    {
    GlassWalls();  /// hack
    }
    this is how i made most of my hacks in my D3D hack im creating.
    Credits to ***-Cobra - for teaching me this on facebook
    Me - for showing u how i do it.

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

    lauwy (08-22-2010)

  3. #2
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,193
    Reputation
    205
    Thanks
    1,438
    My Mood
    Mellow
    Why use ReadProcessMemory if you have direct access?

  4. #3
    gcflames12's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    wada
    Posts
    181
    Reputation
    10
    Thanks
    24
    i was just giving the same tutorial as cobra gave me. do you know who he is?

  5. #4
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,193
    Reputation
    205
    Thanks
    1,438
    My Mood
    Mellow
    Quote Originally Posted by gcflames12 View Post
    i was just giving the same tutorial as cobra gave me. do you know who he is?
    Nope, but I would probably suggest using direct memory access to retrieve data, ReadProcessMemory just slows everything down and if you're going to use this in a game, the anti-cheats are most likely hooking it.

    [php]
    int buffer;

    buffer = (int) *(DWORD*)0xHealthAddy;
    [/php]

    Assuming HealthAddy is defined with the correct address, buffer should now hold the value the address contains. Without the use of RPM.

  6. #5
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,024
    Thanks
    But how do you find the address?
    Need some help to get back on track

    Find the pointer to the D3D9 Device (Not usefull for Cross)

    http://www.mpgh.net/forum/242-crossf...ice-lauwy.html

    Fix olly if scanning doesn't work

    http://www.mpgh.net/forum/242-crossf...ing-fails.html

    Unpack cshell.dll

    http://www.mpgh.net/forum/242-crossf...shell-dll.html

  7. #6
    gcflames12's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    wada
    Posts
    181
    Reputation
    10
    Thanks
    24
    same as crossfire, dump cshell and if you want engine. then just open cshell in olydbg and search for all refrenced text strings. you can find the addies for stuff or just use ptc. deadlinez has a nice post of them.

  8. The Following User Says Thank You to gcflames12 For This Useful Post:

    lauwy (08-22-2010)

  9. #7
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,024
    I mean, how to find an address to NOP.

    (crossfire example )

    See Ghost:
    address: 10111D4D
    offsets: 0x7C, 0x07 (nop it)
    signature: \x3B\xD1\x7F\x4E\x8A\x54\x24\x10
    Need some help to get back on track

    Find the pointer to the D3D9 Device (Not usefull for Cross)

    http://www.mpgh.net/forum/242-crossf...ice-lauwy.html

    Fix olly if scanning doesn't work

    http://www.mpgh.net/forum/242-crossf...ing-fails.html

    Unpack cshell.dll

    http://www.mpgh.net/forum/242-crossf...shell-dll.html

  10. #8
    gcflames12's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    wada
    Posts
    181
    Reputation
    10
    Thanks
    24
    use magic mans sig scanner

Similar Threads

  1. How to memory hack to get addys?
    By Valestrom in forum Combat Arms Coding Help & Discussion
    Replies: 5
    Last Post: 07-29-2011, 05:41 PM
  2. [Help] So i this right idk i don't do memory hacking i do d3d
    By Mozamel in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 7
    Last Post: 03-24-2011, 12:13 PM
  3. How to fix the DC when memory hack is activated on the lobby?
    By detroyd in forum Combat Arms Coding Help & Discussion
    Replies: 2
    Last Post: 12-17-2010, 07:34 AM
  4. How To Code A Memory Hack For Combat Arms
    By zmansquared in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 7
    Last Post: 06-27-2010, 03:33 AM
  5. Source code for any d3d/memory hack
    By Ragehax in forum C++/C Programming
    Replies: 6
    Last Post: 10-01-2009, 10:10 PM