Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: JavascriptPHP
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 8-Jan-13 15:23pm
Kumar 091.2K
Edited 8-Jan-13 15:24pm
v2
Comments
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? —SA
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... —SA
Rate this: bad
good
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:
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
  Permalink  
Rate this: bad
good
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. 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.
  Permalink  
Rate this: bad
good
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.
  Permalink  
Rate this: bad
good
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#.
  Permalink  
Comments
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... —SA
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... :-) —SA

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Shai Vashdi 600
1 Tadit Dash 295
2 Sergey Alexandrovich Kryukov 250
3 Peter Leow 190
4 OriginalGriff 158
0 Sergey Alexandrovich Kryukov 9,395
1 OriginalGriff 5,473
2 Peter Leow 4,150
3 Maciej Los 3,540
4 Abhinav S 3,333


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