Home > Back-end >  How to use C how inline assembly in reverse and call other programs call
How to use C how inline assembly in reverse and call other programs call

Time:09-28

I novice a, found some call when reverse plants vs zombies, want to use c + + write a auxiliary, but I will only two methods, either directly using Windows API change program machine code, change the logic, or apply to the Windows for a block of memory into machine code and then corresponding position in the plants vs zombies program logic to jump to your machine code and execution,

Want excuse me directly in c + + __asm inline assembly plants vs zombies directly call call, like this

The __asm {

Push eax.
Push ebx.
Call the address in plants vs zombies;

}

Can such implementation, is to inject to the plants vs zombies program inside, or else, thank you all for the first,

CodePudding user response:

https://blog.csdn.net/junehappylove/article/details/96158561

CodePudding user response:

Call can, of course, but must be in the same process address space, you can write a DLL, in which the call SetWindowHookEx install a hook, the DLL will inject into each process
  • Related