hack the box tier1 Crocodile
HTB WP -Crocodile
task1:
1 | What Nmap scanning switch employs the use of default scripts during a scan? |
回答:
1 | -sC 之前说过,它等同于 --script=default。在实际使用中,大家也经常把 -sC 和用于探测版本的 -sV 组合在一起,写作 -sCV |
task2:
1 | What service version is found to be running on port 21? |
探测版本用-sV参数
1 | nmap -sV 10.129.98.248 -p 21 |
没有-p也是可以的,答案是:
1 | vsftpd 3.0.3 |
task3:
1 | What FTP code is returned to us for the "Anonymous FTP login allowed" message? |
回答:
之前好像tier0就有一样的问题是230,这个你登录上ftp服务也能看到。
1 | 230 |
task4:
1 | After connecting to the FTP server using the ftp client, what username do we provide when prompted to log in anonymously? |
回答:
1 | anonymous(tier0里面说过) |
task5:
1 | After connecting to the FTP server anonymously, what command can we use to download the files we find on the FTP server? |
回答:
1 | get(之前tier0也说过) |
task6:
1 | What is one of the higher-privilege sounding usernames in 'allowed.userlist' that we download from the FTP server? |
这需要我们连上服务 看看了:
1 | ftp 10.129.1.15(后面写wp的时候换靶机了) |
用anonymous用户空密码登录,找到文件get下来。
听起来权限较高的,一看就是admin:
1 | admin |
task7:
1 | What version of Apache HTTP Server is running on the target host? |
针对的是主机,那就nmap扫一下有哪些端口:
1 | nmap -sV 10.129.1.15 |
可以看到80端口开了http服务,版本是:
1 | Apache httpd 2.4.41 |
task8:
1 | What switch can we use with Gobuster to specify we are looking for specific filetypes? |
回答:
1 | -x |
task9:
1 | Which PHP file can we identify with directory brute force that will provide the opportunity to authenticate to the web service? |
其实目录暴力破解可以用dirsearch:
1 | dirsearch -u 10.129.1.15 |
开扫:
身份验证登录是:
1 | login.php |
task10:
1 | Submit the flag located in the webpage. |
找flag,得先登进去,怎么登呢,我们注意到:
文件有userlist和他的password,都get下来:
admin对应的密码是rKXM59ESxesUFHAd
在浏览器里打开http://10.129.101.52/login.php(又换靶机了,嘿嘿)
把账号密码输进去,进到仪表盘,拿到flag:
flag:
1 | c7110277ac44d78b6a9fff2232434d16 |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 joke的小世界!
评论
