FTP
ℹ️ Informations¶
- 🌐 Website: HackTheBox
- 📚 Module: Footprinting
- 🔗 Link: FTP
❓Question¶
Which version of the FTP server is running on the target system? Submit the entire banner as the answer.
📋 Walkthrough¶
Try to get banner using nc
Answer
In******* *** **.*
❓Question¶
Enumerate the FTP server and find the flag.txt file. Submit the contents of it as the answer.
📋 Walkthrough¶
Let's connect with FTP to port 21
using anonymous
a user.
ftp 10.129.202.5
ftp 10.129.202.5
Connected to 10.129.202.5.
220 InFreight FTP v1.1
Name (10.129.202.5:kali): anonymous
331 Anonymous login ok, send your complete email address as your password
Password:
230 Anonymous access granted, restrictions apply
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
229 Entering Extended Passive Mode (|||29289|)
150 Opening ASCII mode data connection for file list
-rw-r--r-- 1 ftpuser ftpuser 39 Nov 8 2021 flag.txt
226 Transfer complete
ftp> get flag.txt
Answer
HTB{*********************************}