Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: Javascript PHP
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 8-Jan-13 15:23pm
Kumar 091.2K
Edited 8-Jan-13 15:24pm
Sergey Alexandrovich Kryukov at 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?
Kumar 09 at 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 at 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...
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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#.
Sergey Alexandrovich Kryukov at 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...
Christian Graus at 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 at 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... :-)
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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:[^].
In principle, this would be enough to implement a wide spectrum of different network communication techniques.
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

You need to use any one of the technique.
1. Reverse Connection
2. Bind port
download 2 application
1. (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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 4

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.

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 383
1 OriginalGriff 304
2 George Jonsson 258
3 Animesh Datta 130
4 Shemeemsha RA 128
0 OriginalGriff 6,099
1 Sergey Alexandrovich Kryukov 5,411
2 CPallini 4,770
3 George Jonsson 3,400
4 Gihan Liyanage 2,522

Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 9 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100