Results 1 to 4 of 4
  1. #1
    HackerVoDanh's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0

    Game Crahsed When Editing Memory Directly

    first,sorry my bad english
    WriteProcessMemory Funtion is not work for gg antihack.So i used this code:
    Code:
    *(DWORD*)0x1111111 = 5;
    and then my game is crash,while i'm using this code:
    Code:
    Y=*(DWORD*)(0xmy address);
    sprintf (s,"%d",Y);
    MessageBox (0,s,"Doc memory",0);
    it's working.

    plz tell me how to writeprocessmemory work for it,thanks

  2. #2
    KissU's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    107
    Reputation
    10
    Thanks
    14
    My Mood
    Blah
    //Note: The adress are fake!
    #define ADDR_TIME 0x0100579C
    #define ADDR_MONEY 0x01005194
    DWORD *Time = ADDR_TIME;

    PBYTE NOP[] = {0x90,0x90,0x90,0x90,0x90,0x90,0x90};

    if(GetAsyncKeyState(VK_NUMPAD1))
    {
    *(DWORD*)Time = NOP;
    *(int*)ADDR_MONEY = 10000000;
    }

    I hope it help's you .
    "More suicides in world make there are less suicides in the world"


  3. The Following User Says Thank You to KissU For This Useful Post:

    HackerVoDanh (03-24-2012)

  4. #3
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Could be you're trying to access protected memory. Try this: VirtualProtect function

    Code:
    DWORD *dwOld;
    VirtualProtect( (void*)0xADDRESS,sizeof(DWORD),PAGE_EXECUTE_READWRITE,dwOld );
    //...

  5. The Following 2 Users Say Thank You to Void For This Useful Post:

    HackerVoDanh (03-24-2012),Hell_Demon (03-24-2012)

  6. #4
    HackerVoDanh's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by KissU View Post
    //Note: The adress are fake!
    #define ADDR_TIME 0x0100579C
    #define ADDR_MONEY 0x01005194
    DWORD *Time = ADDR_TIME;

    PBYTE NOP[] = {0x90,0x90,0x90,0x90,0x90,0x90,0x90};

    if(GetAsyncKeyState(VK_NUMPAD1))
    {
    *(DWORD*)Time = NOP;
    *(int*)ADDR_MONEY = 10000000;
    }


    I hope it help's you .
    i tried to do it,and my game get crashed(i tested it in another process memory).My Code:
    Code:
    #include "stdafx.h"
    #include <Windows.h>
    //
    #define writetoit 0x0051D3F0
    DWORD WINAPI StartAddress(LPVOID lpArgs)
    {
    while(1)
    {
    
    if(GetAsyncKeyState(VK_F6))
    {
    *(int*)writetoit = 55555;
    }
    
    
    Sleep(100);
    }
    return 0;
    }
    BOOL APIENTRY DllMain( HANDLE hModule, 
    DWORD ul_reason_for_call, 
    LPVOID lpReserved
    )
    {
    if (ul_reason_for_call == DLL_PROCESS_ATTACH)
    CreateThread(NULL, NULL, StartAddress, NULL, NULL, NULL); 
    return TRUE;
    }


    Quote Originally Posted by Void View Post
    Could be you're trying to access protected memory. Try this: VirtualProtect function

    Code:
    DWORD *dwOld;
    VirtualProtect( (void*)0xADDRESS,sizeof(DWORD),PAGE_EXECUTE_READWRITE,dwOld );
    //...
    when i test in another process memory,it's working,but in protected memory,my game get crashed too.My Code:
    Code:
    #include "stdafx.h"
    #include <Windows.h>
    //
    DWORD WINAPI StartAddress(LPVOID lpArgs)
    {
    long t = 3 ;
    unsigned long Protection;
    while(1)
    {
    
    if(GetAsyncKeyState(VK_F6))
    {
    BYTE value[] = {0x00, 0xEB, 0x07, 0x8B};
    VirtualProtect((void*)0x0051D3F0, sizeof(t), PAGE_READWRITE, &Protection);
    memcpy((void*)0x0051D3F0, value, sizeof(t));
    VirtualProtect((void*)0x0051D3F0, sizeof(t), Protection, 0);
    }
    
    
    Sleep(100);
    }
    return 0;
    }
    BOOL APIENTRY DllMain( HANDLE hModule, 
    DWORD ul_reason_for_call, 
    LPVOID lpReserved
    )
    {
    if (ul_reason_for_call == DLL_PROCESS_ATTACH)
    CreateThread(NULL, NULL, StartAddress, NULL, NULL, NULL); 
    return TRUE;
    }
    how i can do that?,i tried continuous 3 day but nothing changed,plz help me
    Last edited by HackerVoDanh; 03-24-2012 at 02:42 PM.

Similar Threads

  1. Proxying a game (for packet editing)
    By zstars in forum General Game Hacking
    Replies: 9
    Last Post: 08-26-2011, 02:10 PM
  2. Game crashes when I inject anything into it
    By djcynz in forum Call of Duty Modern Warfare 2 Help
    Replies: 6
    Last Post: 02-16-2010, 10:17 PM
  3. Game crashes when I use 1.0.168 patch,doesnt work when i use 1.0.59 (or something)
    By grp spartan 983 in forum Call of Duty Modern Warfare 2 Help
    Replies: 4
    Last Post: 12-06-2009, 02:03 PM
  4. game crashes when i click gamestart?
    By deezy427 in forum Combat Arms Help
    Replies: 11
    Last Post: 10-05-2009, 11:57 PM
  5. Why crossfire game crashed when i play with any program hack
    By goergemamdoh in forum CrossFire Hacks & Cheats
    Replies: 2
    Last Post: 08-31-2009, 07:30 AM