Remote ControlProgram(SPY) is a network program written by the author when learning network programming. Its functions include:
1. Remote File Operations (upload, download, copy, and delete );
2. Remotely start the command prompt;(For exampleIf Kaba is installed on the controlled end, CMD may be blocked)
3. Remotely start your own console program;
Note: This software is only used for communication and learning. Please do not use it for illegal purposes!
Download Remote Control Program
Download source code
Contact author
This program contains three programs:
1. spysvc server (controlled end)
2. spycmd command line client (control end)
3. Spy GUI client (the control end must install. NET Framework 2.0)
Usage:
1. Start the controlled end
(1) input verification (if the control end is connected to the control end, enter the same verification)
Note: If the value of validate in the file spysvc. ini in the same directory of spysvc.exe is not empty and is not a prompt, this dialog box is not displayed, but the value of validate is used for verification.
2. Connect to the controlled File System
Start spy, click Connect-> file system, and enter the controlled IP address and verification.
If the connection is successful, the file interface is displayed:
3. Start the command line prompt:
Note: If the controlled server is installed with kaback, starting cmd may be blocked.
Start spy, click Connect-> remote console, enter the controlled IP address, verify and start the program (Enter cmd at the command line prompt)
If the connection is successful, the command line interface is displayed:
You can also write a console Program (excluding dos program), send it to the controlled end for running, and remotely operate the program, but you must call the redirectcrt function at the beginning of the program: (including Io. h header file)
Void Redirectcrt () {file * Hf; Int Hcrt; hcrt = _ open_osfhandle (( Long ) Getstdhandle (std_output_handle), _ o_text );If (Hcrt! =-1) {HF = _ fdopen (hcrt, "W" ); If (HF) {* stdout = * Hf; setvbuf (stdout, null, _ ionbf, 0) ;}} hcrt = _ open_osfhandle (( Long ) Getstdhandle (std_input_handle), _ o_text ); If (Hcrt! =-1) {HF = _ fdopen (hcrt, "R" ); If (HF) {* stdin = * Hf; setvbuf (stdin, null, _ ionbf, 0) ;}} hcrt = _ open_osfhandle (( Long ) Getstdhandle (std_error_handle), _ o_text );If (Hcrt! =-1) {HF = _ fdopen (hcrt, "W" ); If (HF) {* stderr = * Hf; setvbuf (stderr, null, _ ionbf, 0 );}}}
4. log out of the server
Press CTRL + ALT + Shift + F12