HTB WP -Fawn

task1:

1
2
What does the 3-letter acronym FTP stand for?
FTP这三个字母的缩写代表什么?

回答:

1
2
File Transfer Protocol
文件传输协议,是一种用于在网络上传输文件的协议。

task2:

1
2
Which port does the FTP service listen on usually?
FTP 服务通常监听哪个端口?

回答:

1
21

task3:

1
2
FTP sends data in the clear, without any encryption. What acronym is used for a later protocol designed to provide similar functionality to FTP but securely, as an extension of the SSH protocol?
FTP以明文形式发送数据,不进行任何加密。后来出现了一种协议,旨在提供与FTP类似的功能,但更加安全,它是SSH协议的扩展,该协议的缩写是什么?

回答:

1
2
SFTP:通过SSH从FTPS传输数据。
FTPS:FTP over SSL

task4:

1
2
What is the command we can use to send an ICMP echo request to test our connection to the target?
我们可以使用什么命令发送 ICMP 回显请求来测试与目标的连接?

回答:

1
ping

task5:

1
2
From your scans, what version is FTP running on the target?
根据扫描结果,目标主机上运行的是哪个版本的FTP?

那就扫吧:

1
nmap -sV 10.129.90.44

扫出来个21端口的ftp服务。

1
2
3
PORT   STATE SERVICE VERSION
21/tcp open ftp vsftpd 3.0.3
Service Info: OS: Unix

版本是:

1
vsfpd 3.0.3

task6:

1
2
From your scans, what OS type is running on the target?
根据扫描结果,目标设备运行的是哪种操作系统?

从前面扫出来的结果可以看出:

1
Service Info: OS: Unix

是Unix系统。

回答:

1
Unix

task7:

1
2
What is the command we need to run in order to display the 'ftp' client help menu?
要显示“ftp”客户端的帮助菜单,我们需要运行什么命令?

回答:

1
ftp -?

一样的,ftp帮助菜单可以用下面这个命令:

1
man ftp

task8:

1
2
What is username that is used over FTP when you want to log in without having an account?
当您想在没有帐户的情况下通过 FTP 登录时,使用的用户名是什么?

回答:

1
anonymous

登录:

1
ftp anonymous@10.129.90.44

在ftp界面输入:

1
?

你可以看到很多参考命令

task9:

1
2
What is the response code we get for the FTP message 'Login successful'?
对于“登录成功”的 FTP 消息,我们得到的响应代码是什么?

回答:

1
230

task10:

1
2
There are a couple of commands we can use to list the files and directories available on the FTP server. One is dir. What is the other that is a common way to list files on a Linux system.
我们可以使用几个命令来列出FTP服务器上可用的文件和目录。一个是dir命令。另一个是Linux系统上常用的文件列表命令是什么?

回答:

1
ls

task11:

1
2
What is the command used to download the file we found on the FTP server?
用来下载我们在FTP服务器上找到的文件的命令是什么?

回答:

1
get

task12:

1
Submit the flag located on the FTP server.

先用ftp服务连上靶机:

1
ftp 10.129.90.44

(我后面重开了一个靶机)

用到了之前的知识点:

我没有账户,所以我想登录使用的用户是anonymous,这时候它让我输入密码,我直接回车了(其实是任意密码即可)。然后回显230 登录成功

然后看看有啥文件或者目录:

1
ls
1
看到flag.txt了,get下来
1
get flag.txt

拿到flag.txt: