ReadProcessMemory

About Monkey 2 Forums Monkey 2 Programming Help ReadProcessMemory

This topic contains 2 replies, has 2 voices, and was last updated by  Mark Sibly 1 year, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9876

    Hezkore
    Participant

    I’m trying to read memory from another process but I’m having a hard time wrapping the Windows API function for it.

    https://msdn.microsoft.com/en-us/library/ms680553(v=VS.85).aspx

    Anyone got any hints?

    #9892

    Hezkore
    Participant

    I’ve had some progress, but the problem is that the data I get from ReadProcessMemory does not match with what other memory readers show.
    For example, the memory address for me at the time of testing $0CC7E8E8 was how far I’ve scrolled in Ted2Go.
    That value when read via this example remains unchanged no matter how much I scroll, but I can see the value change in other memory readers just fine.
    And restarting the example below displays another value the next time, even though I have NOT scrolled.
    So I’m not sure what kind of data I’m getting back…

    This may be hard for others to test since the address probably won’t be the same twice, and your Process ID for Ted2Go will be different…
    But really, all you have to do is have Ted2Go running, find the PID for Ted2Go and enter that into the example and run it a few times without doing anything in Ted2Go, and you’ll see that the value is different each time.
    If you have a memory reader, you can check the address 0CC7E8E8 for Ted2Go and you’ll see that it doesn’t match with what this example shows.

    I’m honestly not even sure if I’m wrapping the Win32 functions correctly…
    At line 27 – OpenProcess https://msdn.microsoft.com/en-us/library/windows/desktop/ms684320(v=vs.85).aspx
    At line 30 – CloseHandle https://msdn.microsoft.com/en-us/library/windows/desktop/ms724211(v=vs.85).aspx
    At line 33 – ReadProcessMemory https://msdn.microsoft.com/en-us/library/windows/desktop/ms680553(v=vs.85).aspx

    #9893

    Mark Sibly
    Keymaster

    HANDLE should be:

    Alias HANDLE:Void Ptr

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.