Results 1 to 5 of 5

Thread: Read Ram.

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2008
    Posts
    297

    Read Ram.

    I was doing some searching I couldn't find any usefull tip.

    I was wondering if I can read/write to RAM and if I can pinpoint a specific program and read the data is writing to RAM.

    If so, please guide me in what I need to read on.

    Thank you very much!

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: Read Ram.

    How about viruses and hacking? As a general rule, programs do not write into the memory space reserved for other programs. Operating systems try to enforce this, so pretty much anything that attempts to circumvent those rules is going to be either misguided or malicious or both. Consider what that would allow you to do. What is in memory at all times? The program you are interested in, to be sure, but also the operating system itself. Overwrite the right parts of THAT code in RAM, and your computer might crash so hard that your only alternative would be to reformat the drives. It isn't likely that the damage would be that severe, but it could easily result in a BSoD. Naturally, MS would prefer that people not write programs that wreck their OS or lock their computers, and the people who would most like to achieve that result would be those with malicious intent.

    So, considering the damage that it would allow you to do to peoples computers, including your own, would you like what you are asking for to be easy?
    My usual boring signature: Nothing

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2008
    Posts
    297

    Re: Read Ram.

    Quote Originally Posted by Shaggy Hiker View Post
    How about viruses and hacking? As a general rule, programs do not write into the memory space reserved for other programs. Operating systems try to enforce this, so pretty much anything that attempts to circumvent those rules is going to be either misguided or malicious or both. Consider what that would allow you to do. What is in memory at all times? The program you are interested in, to be sure, but also the operating system itself. Overwrite the right parts of THAT code in RAM, and your computer might crash so hard that your only alternative would be to reformat the drives. It isn't likely that the damage would be that severe, but it could easily result in a BSoD. Naturally, MS would prefer that people not write programs that wreck their OS or lock their computers, and the people who would most like to achieve that result would be those with malicious intent.

    So, considering the damage that it would allow you to do to peoples computers, including your own, would you like what you are asking for to be easy?
    I'm really not that much interested in writing, but I just want reading.
    I just need it to read some data of my program. I want to make is as secure as I can. So if I can read what it generates then I can see if it's possible to make is secure.

    Thank you

  4. #4
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: Read Ram.

    If it's your program, why not expose the information directly?
    My usual boring signature: Nothing

  5. #5
    Member
    Join Date
    May 2011
    Posts
    38

    Re: Read Ram.

    If I understood correctly, you want to read a specific program's allocated memory.
    Take a look at ReadProcessMemory and WriteProcessMemory, they're pretty easy to use.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width