Thread: Dynamic Memory Address Handling

  1. #1
    Registered User doctorzeus's Avatar
    Join Date
    Jan 2011
    Location
    UK
    Posts
    13

    Post Dynamic Memory Address Handling

    Hi new to the Forum!

    Now I'm not sure If I am allowed to ask this, so I am gonna check first because some
    would view it as walking the line but I really need advice on this...

    Am I allowed to ask about Trainers (i.e. programs that overide the values stored at certain adresses so you can get cool stuff in games), e.g. Ammo for a game is at memory address 0x1234567 with a value of 46. Using WriteProcessMemory() you can change this value to 132 so you have more ammo etc...theres entire websites devoted to making these e.g.

    Cheat Happens Trainers

    I ask because I don't wanna be breaking the forum rules but I found programming these things not only being great fun but Its been great to learn the Window Header Handler controls..

    (I'm talking VC++ by the way)

    Thanks

    Doctorzeus
    Last edited by doctorzeus; 01-07-2011 at 07:32 AM.

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    As long as you manipulate only your own PC without any side effects on others, I don't think anyone here will object. However, most members will probably call it "hacking" once you manipulate multiplayer games (and rightly so). Hacking (or more precisely "cracking") is against the forum rules.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,739
    Anyways, even if you have the game's source code, it's almost impossible to find out where in memory that object is,if it's in memory at all!
    Devoted my life to programming...

  4. #4
    Registered User doctorzeus's Avatar
    Join Date
    Jan 2011
    Location
    UK
    Posts
    13

    Talking

    Quote Originally Posted by nvoigt View Post
    As long as you manipulate only your own PC without any side effects on others, I don't think anyone here will object. However, most members will probably call it "hacking" once you manipulate multiplayer games (and rightly so). Hacking (or more precisely "cracking") is against the forum rules.
    Thanks For the Reply

    Na I just use it for some single-player games, it wouldn't work on multiplayer games anyway cause the servers record of how much ammo you have is then different from your own so it would kick you cause of sync issues...I for one hate the people who hack the multiplayer WAN games..It annoys me intently

    Ok here goes then:

    Basically I've sucessfully Written a Program that overides the memory variables no problem with some games...the only problem is that with other games they have what I understand it as Dynamic Memory.

    This means that if the original ammo address is 0x1234567 then when you have written the source code for the trainer to overide memory address 0x1234567 and compiled and built it, if the game restarts the memory address will change. Now Trainers on the web obviously get around this some how (I'm sure without DLL Injection), I just don't know how they do it...does anyone know and/or have any suggestions for tackling this?

    Thanks

    Doctorzeus
    Last edited by doctorzeus; 01-07-2011 at 10:30 AM.

  5. #5
    Registered User doctorzeus's Avatar
    Join Date
    Jan 2011
    Location
    UK
    Posts
    13
    Quote Originally Posted by Sipher View Post
    Anyways, even if you have the game's source code, it's almost impossible to find out where in memory that object is,if it's in memory at all!
    You can get around this simply by using a memory scanner and then just scan for all possbile values that are exacly the same as the one you want, you then narrow it down when it changes...well thats how you get the initial ones anyway.

    Thanks

    Doctorzeus

  6. #6
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Two things:
    • We cannot verify your true intentions via the internet
    • Most well behaved programs do not go poking around in the memory of other well behaved programs. This has very little constructive use and what it does provide can be accomplished via other constructs and methods.

  7. #7
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Bubba View Post
    Two things:
    • We cannot verify your true intentions via the internet
    • Most well behaved programs do not go poking around in the memory of other well behaved programs. This has very little constructive use and what it does provide can be accomplished via other constructs and methods.
    I'm agreeing... If it was just "how do I find something in memory" no problem. If it was simply "How do I catch a keystroke from a service" no problem... Put the two together and I'd have to judge this as being rather dodgy at best. (Especially so when the hot key combo he's looking for is the one used to close windows Alt-F4)

  8. #8
    Registered User doctorzeus's Avatar
    Join Date
    Jan 2011
    Location
    UK
    Posts
    13
    Quote Originally Posted by CommonTater View Post
    I'm agreeing... If it was just "how do I find something in memory" no problem. If it was simply "How do I catch a keystroke from a service" no problem... Put the two together and I'd have to judge this as being rather dodgy at best. (Especially so when the hot key combo he's looking for is the one used to close windows Alt-F4)
    How would those two put together create something dodgy anyhow?

    I agree I could have timed those threads a bit better, but as hard as it may be for you to believe they are both for different programs..This thread is for exacly what I described, the other ones for a program that ends the current window when you press Ctrl+Alt+F4...Kinda a "super" Alt+F4 is essentially what I am trying to make in the other thread...

    Doctorzeus

  9. #9
    Registered User doctorzeus's Avatar
    Join Date
    Jan 2011
    Location
    UK
    Posts
    13
    Quote Originally Posted by Bubba View Post
    Two things:
    • We cannot verify your true intentions via the internet
    • Most well behaved programs do not go poking around in the memory of other well behaved programs. This has very little constructive use and what it does provide can be accomplished via other constructs and methods.
    What if I posted the source?

    Doctorzeus

  10. #10
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Oh gee... lemme think about this... You're in a game and buddy's about to kill you then suddenly he's got no ammo... If that doesn't stop him POOF window closed.

    The sad thing about this is that much of what you've asked about is the kind of stuff that's used for writing malware and trojens. It sets off all kinds of alarm bells with anyone who's had any dealings in computer security.

  11. #11
    Registered User doctorzeus's Avatar
    Join Date
    Jan 2011
    Location
    UK
    Posts
    13

    Angry

    Quote Originally Posted by CommonTater View Post
    Oh gee... lemme think about this... You're in a game and buddy's about to kill you then suddenly he's got no ammo... If that doesn't stop him POOF window closed.

    The sad thing about this is that much of what you've asked about is the kind of stuff that's used for writing malware and trojens. It sets off all kinds of alarm bells with anyone who's had any dealings in computer security.
    You don't have to be a douche to me just because I didn't know as much as you do!

    Its clear that I'm not gonna be able to proove my good intentions, if I could withdraw this post I would.

    Doctorzeus
    Last edited by doctorzeus; 01-08-2011 at 03:43 AM.

  12. #12
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    You don't have to be a douche to me just because I didn't know as much as you do!
    Its clear that I'm not gonna be able to proove my good intentions, if I could withdraw this post I would.
    Please do not resort to name calling.

    Good intentions or not this type of discussion is not allowed on this particular forum. We are not saying that there is no educational value in it but we cannot control the intentions of others who may read these threads so we would rather talk about other areas of programming. Besides there are so many things we can talk and learn about here I think we are willing to make the concession that help with this particular area of programming simply will not come from this forum.

    Closed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sorting number
    By Leslie in forum C Programming
    Replies: 8
    Last Post: 05-20-2009, 04:23 AM
  2. To find the memory leaks without using any tools
    By asadullah in forum C Programming
    Replies: 2
    Last Post: 05-12-2008, 07:54 AM
  3. Dynamic Linking & Memory usage
    By @nthony in forum C Programming
    Replies: 2
    Last Post: 06-02-2007, 09:57 PM
  4. operator overloading and dynamic memory program
    By jlmac2001 in forum C++ Programming
    Replies: 3
    Last Post: 04-06-2003, 11:51 PM