A
A
ArturVal2019-08-09 14:49:07
C++ / C#
ArturVal, 2019-08-09 14:49:07

How to call a function of another program directly (without API)?

Good afternoon. The question may be too vague. For starters, there is a AAA program (compiled and without an API) that has a graphical interface. The GUI button calls a function to add two numbers. Now the question is: is it possible to create another BBB program that will call the function of adding two numbers to the running AAA program without pressing a button, i.e. directly access the function call (the result is not necessarily displayed in the AAA program, a kind of cheat)?
Tell me what to read and in what direction to dig.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-08-09
@ArturVal

A daunting task. On Windows, you can try using CreateRemoteThread to create a thread in the address space of the target process, using SetThreadContext to cram function parameters into registers, and then jump to its address. True, the address still needs to be found out somehow. Well, I suspect that any antivirus program will have a tantrum from this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question