Inserting values into a process's memory

This is a discussion on Inserting values into a process's memory within the Windows Programming forums, part of the Platform Specific Boards category; Hi, Does anyone of any info or links on how to insert values into another process's memory? Like what a ...

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    28

    Inserting values into a process's memory

    Hi,

    Does anyone of any info or links on how to insert values into another process's memory?
    Like what a trainer for a game does, giving you 99 lives etc.

    Ive already trained the game, so i know where to insert the values, i just don't know how!

    Im not asking someone to tell me how to do it, just if they have any info/links on how its done as i'd like to learn.

    I've tried searching arround but i don't even know what the correct name for doing so is called!

    Cheers
    Marc

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    You use WriteProcessMemory to write data into the memory of another process.

    You will need a process handle, typically obtained from CreateProcess or OpenProcess, and the memory address which you say you have.

    Search: WriteProcessMemory game cheat

    Google cache of broken page - Will soon cease to exist

    >>Ive already trained the game, so i know where to insert the values, i just don't know how!<<

    Out of interest, how does one do this?

  3. #3
    Registered User
    Join Date
    Nov 2003
    Posts
    28
    Thanks for the reply.
    I managed to make myself a trainer for HALO!


    Originally posted by anonytmouse
    Out of interest, how does one do this?
    I just used a program that can scan through the memory of an open process for a value that you enter.
    You would then loose a life or fire a bullet and search for the new value and it is eventually narrowed down to the correct memory address.
    Keep poking the value into the memory location and you have infinite of whatever you searched for.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 02-06-2009, 12:27 PM
  2. Relate memory allocation in struct->variable
    By Niara in forum C Programming
    Replies: 4
    Last Post: 03-23-2007, 04:06 PM
  3. Copying memory, pointers and the like.
    By psychopath in forum C++ Programming
    Replies: 34
    Last Post: 12-12-2006, 01:37 PM
  4. Memory allocation and deallocation
    By Micko in forum C++ Programming
    Replies: 3
    Last Post: 08-19-2005, 07:45 PM
  5. Accessing Video Memory Information...need help
    By KneeLess in forum C++ Programming
    Replies: 8
    Last Post: 08-24-2003, 04:53 PM

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