Thread: (help me pls)how do you change memory value in other programs?

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    4

    Question (help me pls)how do you change memory value in other programs?

    I am trying to make a program that changes the value of the ammo in an online RPG (Combat Arms). What i need is a snippit of code that i can use to change the value of a specified address in a specified program. (something that will work in a DOS pogram)

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    Applications do not directly address the system's memory. They interact through virtual memory provided by the operating system. This is done precisely so that one process cannot modify another process's memory (thus destabilizing it).

    Doing what you are attempting to do requires a very complicated and advanced technique which involves loading a library you write into another process's address space. You will not find any information on how to do this at this website since it is the same technique used to do illegal things with applications.

  3. #3
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,318
    Uh hello, he's specifically asking how to use it to do illegal things!

    Today I've read posts on here of people asking for:
    1. Game cheating by modifying a value in another program's memory space,
    2. How to send SYN packets, and
    3. How to speed up brute-force cracking of AES encryption.


    Whose to say these aren't all coming from the same person! In one of those cases we've even got an idiot helping them. Are the moderators on holiday or something?
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  4. #4
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    Quote Originally Posted by iMalc View Post
    Uh hello, he's specifically asking how to use it to do illegal things!

    Today I've read posts on here of people asking for:
    1. Game cheating by modifying a value in another program's memory space,
    2. How to send SYN packets, and
    3. How to speed up brute-force cracking of AES encryption.


    Whose to say these aren't all coming from the same person! In one of those cases we've even got an idiot helping them. Are the moderators on holiday or something?
    plus yesterday I got some very suspisious link in PM from historyR, I hope that person is already banned...
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by diducktape
    I am trying to make a program that changes the value of the ammo in an online RPG (Combat Arms).
    I strongly suggest that you take advantage of the user interface provided to change the value of the ammo. For example, you could fire the weapon, or purchase/find ammo.

    *thread closed*
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 02-06-2009, 12:27 PM
  2. Assignment Operator, Memory and Scope
    By SevenThunders in forum C++ Programming
    Replies: 47
    Last Post: 03-31-2008, 06:22 AM
  3. Memory handler
    By Dr. Bebop in forum C Programming
    Replies: 7
    Last Post: 09-15-2002, 04:14 PM
  4. What's the best memory (RAM) type?
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 12-15-2001, 12:37 AM
  5. Replies: 2
    Last Post: 09-04-2001, 02:12 PM