That is possible depending on the OS. Modern OSes have memory protection which don’t allow these kind of operations. But if you go ahead and disable all of those security features, you can send and load the binary remotely into memory and execute it. And that still involves pretty advanced stuff.
Some reading:
- https://www.blackhat.com/presentations/bh-usa-07/Harbour/Whitepaper/bh-usa-07-harbour-WP.pdf
- https://superuser.com/questions/241259/how-to-run-a-local-application-on-a-distant-server-with-ssh
- Is it possible to load a binary file into memory and execute it in windows
0
solved How to store a file in C