Results 1 to 8 of 8
  1. #1
    SawMister's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Germany
    Posts
    23
    Reputation
    16
    Thanks
    0

    Question Game crahses with my DLL

    Hello. First of all, i must say sorry for my English, im German.
    Yesterday i made a DLL for the game "Metin2". The DLL should freeze my Y coordinate, when i press F1. But when i press F1, the game crashes with the Error "???????". So i think in the code is something wrong.

    Here is the Code:

    #include "stdafx.h" #include <iostream> using namespace std; DWORD BasePo - Pastebin.com

    The Pointer is 100% correctly.

    I hope you can see the mistake..

    Best regards, Rene

  2. #2
    TrollerCoaster's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    I am a fish
    Posts
    633
    Reputation
    61
    Thanks
    800
    There's seem to be many "errors" in the code, but a logical error is within CreateThread and your #define Points4

    The 2nd parameter of CreateThread is stack space. Try CreateThread(0,4096...);
    ++ #define Points4 0x0000018g

    g is not hexadecimal

    You also keep re-defining dwPoints (doesn't make sense), but it looks like you were trying to do base+offset+offset+offset...
    The rest of the mistakes should be up to you to fix.

  3. #3
    SawMister's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Germany
    Posts
    23
    Reputation
    16
    Thanks
    0
    Okay thanks.

    I tried:
    #define Points0 0x8
    #define Points1 0x5dc
    #define Points2 0x2d8
    #define Points3 0x0
    #define Points4 0x18c
    With same result

    Please help again

    Regards, Rene

  4. #4
    Jabberwock's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    1,735
    Reputation
    191
    Thanks
    15,701
    My Mood
    Relaxed
    DWORD BasePointer = 0;

    It's set to zero...

  5. #5
    WhiteHat PH's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    Some Where I Belong
    Posts
    1,350
    Reputation
    25
    Thanks
    3,100
    My Mood
    Aggressive
    Probs. :
    #define Points0 0x00000008
    #define Points1 0x000005dc
    #define Points2 0x000002d8
    #define Points3 0x00000000
    #define Points4 0x0000018g >> what is this???






    When Im gone dont forget me cause I will come back someday.



    Youtube Channel


     


  6. #6
    Qmo's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    #cmd<user> CONTRIBUTION GAME HACKING
    Posts
    2,008
    Reputation
    246
    Thanks
    5,874
    My Mood
    Relaxed
    Quote Originally Posted by SawMister View Post
    Hello. First of all, i must say sorry for my English, im German.
    Yesterday i made a DLL for the game "Metin2". The DLL should freeze my Y coordinate, when i press F1. But when i press F1, the game crashes with the Error "???????". So i think in the code is something wrong.

    Here is the Code:

    #include "stdafx.h" #include <iostream> using namespace std; DWORD BasePo - Pastebin.com

    The Pointer is 100% correctly.

    I hope you can see the mistake..

    Best regards, Rene
    CRASH because its function is not called

    Code:
    BasePointer = ImageBase + 0x002EBE1C;
    Last edited by Qmo; 05-22-2013 at 12:44 AM.





    اَللّهُ اَكْبَرُ

    .:If u can respect other people work, then u will get what u want:.

  7. #7
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,470
    Reputation
    564
    Thanks
    6,168
    My Mood
    Psychedelic
    You realize when you're adding the pointers you aren't taking the value of the last pointer right?

    Code:
                DWORD &dwPoints = *(DWORD*)(dwBasePointer +  Points0); //Nope. DWORD dwPoints = *(DWORD*)( (DWORD)GetCurrentProcess()+  Points0);
                dwPoints = *(DWORD*)(dwBasePointer +  Points1);  // Again no. dwPoints  = *(DWORD*)(dwPoints+Points1); etc.
                dwPoints = *(DWORD*)(dwBasePointer +  Points2); 
                dwPoints = *(DWORD*)(dwBasePointer +  Points3); 
                dwPoints = *(DWORD*)(dwBasePointer +  Points4);
    Code:
    //Finally, when writing to the pointer:
    DWORD prot;
    VirtualProtect( (LPVOID)dwPoints, sizeof( /*ValueHere*/ int ), PAGE_EXECUTE_READ_WRITE, &prot);
    *(int*)dwPoints = 4;
    VirtualProtect( (LPVOID)dwPoints, sizeof( /*ValueHere*/ int ), prot, &prot);
    Last edited by Kenshin13; 05-22-2013 at 05:29 PM.

  8. #8
    XXkillerFin1's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    Finland
    Posts
    125
    Reputation
    10
    Thanks
    81
    My Mood
    Confused
    @SawMister You got still the same problem? Because my base only contains some D3D drawings and when I inject the .dll in game,it will crash.

    Infraction for me.
    Helping newbies in coding
    Skype:aksuli21

Similar Threads

  1. Trouble with AhnLabs.DLL bypass?
    By ClanTag in forum Combat Arms Hacks & Cheats
    Replies: 6
    Last Post: 07-13-2009, 02:58 PM
  2. Game closes with hack :(
    By Nicremz in forum Combat Arms Hacks & Cheats
    Replies: 1
    Last Post: 01-06-2009, 05:13 AM
  3. Help with D3d9_32.dll
    By GoBxHiTz in forum Combat Arms Hacks & Cheats
    Replies: 6
    Last Post: 08-18-2008, 08:43 PM
  4. I have a question dealling with mfc42d.dll
    By Killallnoobs112 in forum General Game Hacking
    Replies: 1
    Last Post: 02-27-2008, 09:14 AM
  5. Question dealing with mfc42d.dll
    By Killallnoobs112 in forum WarRock - International Hacks
    Replies: 44
    Last Post: 11-29-2007, 07:14 PM

Tags for this Thread