FTP Enum
What is FTP?
FTP stands for File Transfer Protocol. It is a standard network protocol used for transferring files between a client computer and a server on a computer network. FTP is widely used for sharing files over the internet and within local networks. It provides a way to upload, download, and manage files on a remote server.
Here are some key features and aspects of FTP:
Two-Part System: FTP involves two main components: the FTP client and the FTP server. The client is the software used by a user to connect to and interact with the server.
Authentication: FTP servers typically require authentication, which involves providing a username and password to access the server. However, the standard FTP protocol sends login credentials in plain text, making it less secure. For enhanced security, protocols like FTPS (FTP Secure) and SFTP (SSH File Transfer Protocol) use encryption to protect sensitive data.
Commands and Responses: FTP communication follows a command-response model. The client sends commands to the server to request specific actions, such as listing directories or uploading files. The server responds with messages indicating the success or failure of the requested actions.
Modes of Transfer: FTP supports two modes of data transfer: active mode and passive mode. In active mode, the server initiates the data connection to the client, while in passive mode, the client initiates the data connection to the server.
Directory Listing: FTP allows clients to view the contents of directories on the server, making it easy to navigate and select files for transfer.
Binary and ASCII Mode: FTP provides two transfer modes: binary and ASCII. Binary mode is used for transferring non-text files (e.g., images, executables), while ASCII mode is used for text-based files to ensure proper line-ending conversions.
Anonymous FTP: Some FTP servers support anonymous logins, allowing users to access public directories without requiring a username and password. This is often used for sharing public files, such as software updates or documentation.
Extensions and Features: FTP has been extended over the years with various features like resuming interrupted transfers, managing file permissions, and creating directories.
Limitations and Security Concerns: Traditional FTP lacks encryption, which can expose sensitive data and credentials to potential eavesdropping. This has led to the development of more secure alternatives like FTPS and SFTP.
FTP Enumeration
(File Transfer Protocol) - a client-server protocol used to transfer files between a network using TCP/UDP connections.
It requires a command channel and a data channel.
Default FTP port is 21
, opened when FTP is activated for sharing data.
ProFTP Recon: Basics
Lab 1
Target IP:
192.217.238.3
Enumeration of ProFTP server
Target IP is
192.217.238.3
📌 FTP server version is
ProFTPD 1.3.5a
.
FTP Anonymous Login
ftp - Linux Man Page
Try
anonymous:anonymous
login
Use
hydra
with some users/passwords word lists to check if any credentials work with the ftp server
📌 Found credentials are:
sysadmin:654321
rooty:qwerty
demo:butterfly
auditor:chocolate
anon:purple
administrator:tweety
diag:tigger
Use nmap ftp-brute script to find the
sysadmin
's password
Extract the 7 flags hidden on the server by logging in to the
ftp
server with each found user
VSFTPD Recon: Basics
Lab 2
Target IP:
192.119.169.3
Enumeration of vsftpd server
Target IP is
192.119.169.3
📌 FTP server version
vsftpd 3.0.3
Use nmap ftp-anon script to check
anonymous
user login
📌 Anonymous FTP login allowed
Lab 3
🔬 VSFTPD Recon: Dictionary Attack
Target IP:
192.14.30.3
Dicotionary attack on
vsftpd
serverFTP server terminates the session after 3 attemps
Target IP is
192.14.30.3
📌 billy's password is
carlos
A custom script to attemp the logins is required if automated dictionary attack do not work, since the server terminates the sessions after 3 login attempts.
e.g.
python script:
Fetch the flag using
billy:carlos
credentials
Last updated