Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a windows 2003 server, in which i have two vc++ application(.exe).

I have a client windows 7 ultimate, from which(client) i need to communicate to server to run the vc++ application (.exe) over the internet.

As i am not familiar with javascript. can anyone give me idea or any sample for, how to write the script to connect the server from the client over the internet.

Thanks in Advance.
Posted
Updated 8-Jan-13 15:24pm
v2
Comments
Sergey Alexandrovich Kryukov 8-Jan-13 21:26pm    
Why JavaScript? Not a good idea. You need to do it on the server side. Do you have access to any server-side technology?
—SA
Kumar 09 8-Jan-13 21:43pm    
no, i don't have any server side technology. as i mentioned earlier that i have two .exe's in windows 2003 server. is there any other way.
Sergey Alexandrovich Kryukov 8-Jan-13 22:10pm    
I doubt it; probably not.

What a second! You mention PHP. But this is a server-side technology. Why, may I ask you, did you tell me that you don't have any access to a server-side technology?!
Or you still don't have it? Then why PHP? I see no logic. Or you simply don't understand what is it?

Anyway, of course you could communicate via PHP...
—SA

Please see my comments. If find the question very weird. Anyway, if you only have PHP on server-side, this is the way to go. Please see:
http://php.net/manual/en/book.tcpwrap.php[^].

In principle, this would be enough to implement a wide spectrum of different network communication techniques.

—SA
 
Share this answer
 
You need to use any one of the technique.
1. Reverse Connection
2. Bind port

download 2 application
1. http://code.google.com/p/indrajith-mini-shell-project/downloads/list (Coded by me :p ) 2nd version
2. Netcat (Search it in google)

Now in option ((( Connect ))) Select any one of the option and try the Netcat command for your option. After getting reverse connection you can execute any commands in server... It is an black hat tool to access servers. Also it can use administrative purposes.
 
Share this answer
 
but... Think one thing, Reverse shell is coded for Linux Server. But you can use bind port... It is coded for both Linux & Windows server... But It is coded in perl. So you need to install perl in server. Most of server already using perl.
 
Share this answer
 
Javascript runs in the browser. YOur best bet really is to use managed C++ so you can use the .NET libraries for network communication. Or a COM DLL in C#.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 8-Jan-13 22:07pm    
"Managed C++" never existed; it was "managed C++ extension"; and does not exist anymore. There is only C++/CLI now, and this not the quite the same.
Why this language, not anything else; OP did not express special preoccupation with C++...
OP mentioned PHP; it could be used, of course...
—SA
Christian Graus 8-Jan-13 22:08pm    
Well, yeah, managed C++ became C++/CLI. The OP said he's got two VC++ applications. Therefore, making them C++/CLI could be faster than rewriting them in C#
Sergey Alexandrovich Kryukov 8-Jan-13 22:11pm    
I missed the mention of C++...
I updated my comment above; noticed the tag PHP. It makes the question quite weird... who knows what he can do... :-)
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900