Remote Control Program

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.