Hi, I want to start learning basic RE and using it to get, send and modify information from another program.
I set my first task to read a value that another process generates from memory. So I created this "program" that will simply generate random number and I hoped that reading this number will be very easy.
Well.. as it comes out I cant do it.
I was hoping I can follow "Minesweeper, Behind the scene" tutorial, to accomplish what I want. But I simply cannot find the address the value is stored at. When I open the .exe in Olly it starts it right away, then giving me error that program needs to be closed. When I press "Restart program" it just starts it again and gives error. So I cannot follow the program step by step.
So.. conclusion. I tried to read memory of one of the simplest "programs" I could think of (Which by the way looks like the following code) and I failed by myself. Now I'm looking for help/tips from you guys.
This "Program" that generates random number simply looks like that:
static void Main()
Random randNum = new Random();
randnr = randNum.Next(1, 9999);