Reading memory from a process (game in this case)

I am doing an autocritic to return to C # before my school starts again. I play with php as an intern for the last 5 months, when we go back to school, php will disappear, and C # will come around the corner.

I played with C # for a long time, just some fun things whenever I get an idea, nothing special. Now I was creating an autoclicker with a recording function so that I could automate some things in the game, but I want to take another step, reading memory!

Until now, it was so difficult for me to find any decent information (I don’t know exactly where to look), that I was stuck. I want to do something that you can compare with sighting, but nothing commercial or nothing, just want to experiment. I want to know where it can be said that the ghosts are from pacman, or a ball in a pinball, or even planes in a flying game.

How do i get started? I read some things about how memory works and some functions to get it. But I do not know how to find out the addresses. Also, I don't know how to use them in an if statement, for example.

Can someone point me in the right direction here?

+4
source share
3 answers

I suggest you check out (C #) ReadProcessMemory out.

+1
source

Cheat Engine can help you find the memory addresses you need, although this is a rather tedious task. It also allows you to change the material if you want to experiment. There are also Tutorials on Youtube and the CheatEngine forum.

+1
source

Your best bet for writing instructors is direct learning. Learn some C and C ++, then use ReadProcessMemory. Working with your own C # pointers, even in unsafe mode, is terribly difficult and ugly. Working with P / Invoke is not so terrible, but for your case, the only cool thing C # gives you is WinForms. Managed C ++ is the best option if you need WinForms and your own pointers in other processes in the same place :)

0
source

Source: https://habr.com/ru/post/1390246/


All Articles