In this lesson we will learn how to work with FTP servers. I will tell you as much as possible in detail. The first step is theory
What is FTP and How to Connect to It
FTP (File Transfer Protocol) is a network protocol designed for transferring files between computers over a network, most commonly the internet. FTP allows users to upload files to a remote server, download files from it, and manage files on the server (rename, delete, move, etc.).
How FTP Works
FTP uses a client-server architecture:
Client – a program that the user uses to connect to the server.
Server – a machine running an FTP server that can be accessed with a login and password.
FTP operates using two main channels:
Command channel – used for sending commands (e.g., login, list folders).
Data channel – used for transferring the actual files.
How to Connect to FTP
1. Through a web browser (limited access)
You can enter the following in your browser’s address bar:
❗ Most modern browsers no longer support FTP due to security concerns.
2. Through FTP clients
This is the most convenient and feature-rich method. Popular FTP clients include:
FileZilla (Windows, macOS, Linux)
WinSCP (Windows)
Cyberduck (macOS, Windows)
To connect:
Install an FTP client (e.g., FileZilla).
Open the program.
Enter the following:
Host: IP or domain of the server (e.g., ftp.example.com)
Username: your login
Password: your password
Port: usually 21
Click Quickconnect.
3. Through the command line
On Windows:
ftp server_address
Example:
ftp ftp.example.com
Then enter your login and password.
On Linux or macOS, the same command works, or you can use lftp for more advanced features.
Security Note
Classic FTP does not encrypt data, including usernames and passwords. It’s recommended to use FTPS (FTP Secure) or SFTP (SSH File Transfer Protocol) when transferring sensitive data.
Next, let’s look at how to search for data for from servers.
If you want to collect data about servers from logs, you need the function
4)Get ftp Result
If you want to collect server data from the U:L:Rto database, you need the function 24)Get FTP/SSH/SFTP
As a result you get a text file with data about FTP servers.
4)Get ftp Result
24)Get FTP/SSH/SFTP
After collecting the rows, you will get the data in the form of
host:port:login:password
This is the data from the servers, which now needs to be checked for validity. To do this, you can use Golden Eagle Sorter – paid and very fast FTP Checker free – limited to 30 threads.
Our script fully automatically checks servers.
After checking your servers, you will receive a list of valid servers and information about them. You can use them at your discretion. I personally prefer to upload a script to the servers to redirect users to your site.
Now for more details. In my opinion the best method is to look for sites on the servers and replace the index.php file with your own. And redirect visitors to view ads.
To automate this process we have a function – FTP Upload The script will automatically find the index.php file on the FTP server and replace it with your script and upload all additional files that you put in the folder for uploading to the server.
The algorithm is as follows.
Create a script and put all the necessary files in the folder
Activate the file upload function.
Specify the FTP sheet and the folder with the script files (it is better to create the folder on the desktop).
Wait while the download process is in progress
Great all servers are infected with your file.
As a result, you get a lot of unique transitions to your resources and excellent monetization.