点击此处获得更好的阅读体验
WriteUp来源
https://dunsp4rce.github.io/csictf-2020/linux/2020/07/22/HTB-0x01.html
by vishalananth
题目描述
I forgot my 'flag.txt' file on the server...
题目考点
解题思路
I ran a detailed nmap scan on the given IP using:
1 | nmap -vvv -Pn -A 34.93.37.238 |
There is an open TCP port - 5001 which accepts FTP connections. So I tried to open a FTP connection using:
1 | ftp 34.93.37.238 5001 |
But somehow I was not able to run any command as it was not able to enter passive mode. So I downloaded
ncftp FTP client and ran
1 | ncftp -P 5001 34.93.37.238 |
It worked and I was able to get the flag using
1 | cat pub/flag.txt |
Flag
1 | csictf{4n0nym0u5_ftp_l0g1n} |