Interprocess memory editing

This is a discussion on Interprocess memory editing within the Windows Programming forums, part of the Platform Specific Boards category; I'm thinking of writing a trainer for a game, but I need to be able to access the memory of ...

  1. #1
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189

    Interprocess memory editing

    I'm thinking of writing a trainer for a game, but I need to be able to access the memory of the games process directly. I recall there being an API function for this, but I cant remember what it was, anyone know?
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    You know this isn't the place to discuss that.

  3. #3
    Registered User
    Join Date
    Jun 2008
    Posts
    161
    WriteProcessMemory

    ...and what the hell is wrong with discussing trainers?

  4. #4
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    Thx viper.

    and Bubba, I assumed hacking meant of the more malicious sort. Giving my char infinite currency isnt exactly what I would call malicious.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  5. #5
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    I'm hesistant to discuss it at all since this is a public forum and the fact that I detest online cheaters.

    If it's for a single player game on your PC then I understand if you want to mess with it, but discussing it here might give the wrong idea to others.

  6. #6
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,411
    There are already programs that can do this for you out there. One is ArtMoney (comes with a free version).
    I'm fine with it so long as it's for single player.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #7
    Registered User
    Join Date
    Jun 2008
    Posts
    161
    Does anyone know how to determine exactly how much RAM a game is using so you can ReadProcessMemory all of it?

  8. #8
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    Technically I believe any alteration of source code or even displaying of source code on a display not owned by the company is against the EULA.

    However I'm not sure about the EULA when it comes to the data files for the game.

  9. #9
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    Quote Originally Posted by Viper187 View Post
    Does anyone know how to determine exactly how much RAM a game is using so you can ReadProcessMemory all of it?
    The function fails and returns an error if the memory you tried to read is invalid. Persoanlly I woudl try reading in blocks until you encounter a block that fails, then read it byte by byte.

    Personally I want to write a trainer so I can get a feel for how they are written, so i can write code that is much more difficult fro them to hack. Unfortunately, knowign how to beat hackers requires you to know their methods.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  10. #10
    Registered User
    Join Date
    Jun 2008
    Posts
    161
    Quote Originally Posted by abachler View Post
    Personally I want to write a trainer so I can get a feel for how they are written, so i can write code that is much more difficult fro them to hack. Unfortunately, knowign how to beat hackers requires you to know their methods.
    and why must programmers waste time trying to make games unfriendly to hackers? I never understood that BS. Nothing is hacker-proof. Quit wasting your time and ours. I remember hacking so many N64 games that had completely screwy programming. There are still certain games with timers I can't bloody freeze using a gameshark and it annoys the hell out of me.

  11. #11
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,411
    Oh, that's like putting items in stores where you can easily take them and get out of there without paying.
    In short, it isn't fool proof, but if you implement a basic system, the amount of thefts will decrease by a large amount.
    They want to protect their game, and by all rights, they have the right to do so. Just like you'd want to protect your own work from being tampered with or stolen.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  12. #12
    Registered User
    Join Date
    Jun 2008
    Posts
    161
    Quote Originally Posted by Elysia View Post
    Oh, that's like putting items in stores where you can easily take them and get out of there without paying.
    In short, it isn't fool proof, but if you implement a basic system, the amount of thefts will decrease by a large amount.
    They want to protect their game, and by all rights, they have the right to do so. Just like you'd want to protect your own work from being tampered with or stolen.
    If you pay for the goddamn game, you should have to right to screw with it all you want. That includes getting infinite ammo, time, whatever. If they had any right to prevent cheating, gamesharks/etc wouldn't exist. How the hell can you compare it to theft? There's no theft involved in manipulating a game to play the way you want it to.

  13. #13
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,411
    I don't think that analogy holds.
    Say you have invented something and you don't want to give out how it works or what's inside, so that you can have monopoly on it. When selling this device to someone, would you want them to crack it open and mix around with it or would you ban that?
    As the copyright holder, you certainly have the right to ban such use.
    The same goes for game makers. It's their work and they're kind enough to let you use it.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  14. #14
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    If you are ruining someone else's enjoyment of the game by cheating, you are cheating them out of the experience they deserve. They are not able to enjoy the game at its full potential, which they also spent their money for.

    Singleplayer cheating I think is fine in some respects. Once you cross the line to multiplayer cheating, however, I think you're scum.

  15. #15
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,411
    MacGyver also brings up a very good point where cheating should be banned in all possible ways. Cheat for yourself, fine, but cheat for others, that's crossing the line and should be prevented.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 10:22 AM
  2. Suggestions on this C style code
    By Joelito in forum C Programming
    Replies: 11
    Last Post: 06-07-2007, 03:22 AM
  3. Relate memory allocation in struct->variable
    By Niara in forum C Programming
    Replies: 4
    Last Post: 03-23-2007, 03:06 PM
  4. Copying memory, pointers and the like.
    By psychopath in forum C++ Programming
    Replies: 34
    Last Post: 12-12-2006, 12:37 PM
  5. Memory Editing
    By Denethor2000 in forum C++ Programming
    Replies: 6
    Last Post: 11-02-2005, 07:19 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21