Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reading memory from a process (game in this case)

I'm making a autoclicker atm to get back into C# before my school starts again. I've been playing with php as an intern the last 5 months, when we get back to school php will be gone and C# will come looking around the corner.

I have played with C# for a long time, just some fun things whenever I get an idea, nothing special. Now I was making a autoclicker with record function so I could automate some things in a game, but I wanna take it a step further, memory reading!

Untill right now I found it so hard to find some decent info on it (dont know exactly where to look for) that im stuck. I want to make something that you can compare to an aimbot, but nothing commercial or anything, just want to experiment. I want to know the location of lets say ghosts from pacman, or the bal in pinball, or even airplanes in a flying game.

How do I start with this? I've read some things about how memory works and some functions to actually get it. But I dont know how to FIND the addresses. Also I dont know how to use them in a if statement for example.

Can someone point me in the right direction here?

like image 216
Gideon Avatar asked Jan 10 '12 14:01

Gideon


Video Answer


2 Answers

I suggest you check (C#)ReadProcessMemory out.

like image 81
Bawss Avatar answered Oct 31 '22 03:10

Bawss


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

like image 44
kev Avatar answered Oct 31 '22 01:10

kev