how to control one program from other

First you need to reverse-engineer minesweeper to find out the memory location of different variables. Remember that you will probably not be able to run minesweeper’s functions due to context, but you can inject code on it to run those. You can read memory easily, though.

To inject code, you must assemble it separately, and then write it in the process virtual space.

In windows API there are several functions that allow opening a process and accessing it memory, but you must have privileges for that.

In summary: To do that, the first thing you need to learn is how to disassemble and understand a program. Only then youll figure out how easy minesweeper is to understand.

BTW: minesweeper stores the map raw in memory. A simple memory inspector will allow you to get the map of it.

Leave a Comment