C#: Search a byte[] array in another process's memory

后端 未结 5 1699
夕颜
夕颜 2020-12-09 13:23

How is it possible to search for a byte[] array in the memory of another process and then get the address at the place where the byte[] array is located?

I want to w

5条回答
  •  没有蜡笔的小新
    2020-12-09 14:04

    I guess you could use the ReadProcessMemory Windows API call. There's even a premade P/Invoke signature for it so you don't need to bother with manually crafting it. You page through the memory of the process, search through it for your pattern and you're done.

提交回复
热议问题