Hi,
I ' ve created a server application in c and a client application. I want to send the client application from the server to a remote pc,the pc can accept to receive or not the application, after the host receives the client application the application will run. The basic ideea is that i don't want to install my software on the host i want to do this remotly, using c or c++; in Windows
Hope someone can give some sugestions, some functions to use .
Sponsored by: █ Sparkhost - Hosting Without Compromises! █ Hybrid Performance Web Hosting █ Spark Host Stream Hosting █ Hybrid IRC & IRCd Server Shell Accounts
Send And Run Remote Application In C
Started by
sunlucdong
, Jul 12 2010 12:54 AM
1 reply to this topic
#1
Posted 12 July 2010 - 12:54 AM
#2
Posted 16 July 2010 - 06:19 AM
Hi,
I ' ve created a server application in c and a client application. I want to send the client application from the server to a remote pc,the pc can accept to receive or not the application, after the host receives the client application the application will run. The basic ideea is that i don't want to install my software on the host i want to do this remotly, using c or c++; in Windows
Hope someone can give some sugestions, some functions to use .
You may want to consider using a streaming executable approach. An easier solution would be to create a new proccess with no active threads, and manually setup the proccess's pages and resolve the addresses in the IAT(You may be able to avoid this step, I can't remember if there are APIs that will do this for you). You will need to allocate a page for the thread stack and for sections of the executable as well as load all the libraries, and setup the thread's registers accordingly. Either methods take a lot of work. I've created a proccess from a memory buffer, but in new versions of windows this is quite unreliable and unsafe.
It's safer to download the file and execute it using the CreateProcess API, then deleting it when you're finished.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users












