+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Reputation

    Join Date
    Jul 2007
    Last Online
    04-12-2013 @ 10:55 PM
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Rep Power
    0

    Crash Game When Edit Memory Directly By DLL !!!

    first,sorry my bad english :D
    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
    Authorized Users+

    Reputation Reputation Reputation
    xzs's Avatar
    Join Date
    Oct 2009
    Last Online
    @
    Location
    Singapore
    Posts
    681
    Thanks
    0
    Thanked 1 Time in 1 Post
    Blog Entries
    3
    Rep Power
    7

    Re: Crash Game When Edit Memory Directly By DLL !!!

    So it crashed but it's working?
    P.S. : What's your main language?


    To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.

    Need to PM me? Click
    To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
    . | More Art @
    To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
    .

  3. #3
    GzP Coder
    Reputation

    Join Date
    Jan 2010
    Last Online
    11-22-2013 @ 08:43 PM
    Posts
    290
    Thanks
    3
    Thanked 44 Times in 14 Posts

    Rep Power
    5

    Re: Crash Game When Edit Memory Directly By DLL !!!

    WriteProcessMemory(Your Process,The address you are finding a value at,The value you want to over write the address data with,the size of the value sizeof(int),This last parameter can be NULL);

  4. #4
    Audition Level 2

    Reputation Reputation

    Join Date
    Dec 2009
    Last Online
    04-09-2014 @ 04:09 AM
    Location
    Bangkok,Thailand
    Posts
    164
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Rep Power
    6

    Re: Crash Game When Edit Memory Directly By DLL !!!

    maybe incorrect address or unwritable. You must use exception handler for prevent game crash

    Code:
    __try
    {
        *(DWORD*)0x1111111 = 5;
    }
    __except(EXCEPTION_EXECUTE_HANDLER)
    {
        //Error Message
    }
    and use VirtualProtect to change memory protection from Read-Only to Read-Write

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts