Modification of memory in C ++

im trying to learn how to modify games in C ++, not a game, just the memory that he uses to get ammunition, something is wrong, can someone point me to books.

+3
source share
4 answers

The most convenient way to manipulate the memory of a remote process is to create a thread in the context of this program. This is usually achieved by forcing the dll into the target process. After executing the code inside the target application, you can use standard memory routines. e.g. (memcpy, malloc, memset).

I can tell you right now that the most convenient and easy to use method is the CreateRemoteThread / LoadLibrary trick.

, . - , . (: ollydbg IDA pro, ).

, ..

-:

gamedeception.net - , RE ( ) .

http://www.edgeofnowhere.cc/viewtopic.php?p=2483118 - DLL.

Openrce.org - .

- http://www.exploitingonlinegames.com/

Windows API, (msdn.com):

CreateRemoteThread
LoadLibraryA
VirtualAllocEx
VirtualProtectEx
WriteProcessMemory
ReadProcessMemory
CreateToolhelp32Snapshot
Process32First
Process32Next
+12

:

, exe .

:

10 , , , ++. , int * - ( try/catch ).

, , . , , .

, , , . , . * pCode = MY_DESIRED_SCORE;

, . 10-20- ++, .

+4

, . . , -, , .

If you like to create them yourself, just look at the books that describe the window APIs. You will find enough information here.

0
source

This can be done using window hooks to access the process memory space.

-1
source

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


All Articles