Starting Nmap 7.94 ( https://nmap.org ) at 2024-06-14 16:11 EDT Nmap scan report for 172.16.1.240 Host is up (0.15s latency). Not shown: 996 closed tcp ports (reset) PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 6.0p1 Debian 4+deb7u6 (protocol 2.0) 80/tcp open http Apache httpd 2.2.22 ((Debian)) 111/tcp open rpcbind 2-4 (RPC #100000) 10000/tcp open http MiniServ 0.01 (Webmin httpd) Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
/index (Status: 200) [Size: 177] /manual (Status: 301) [Size: 313] [--> http://172.16.1.240/manual/] /server-status (Status: 403) [Size: 293] /site (Status: 301) [Size: 311] [--> http://172.16.1.240/site/]
Pesquiser no google miniserv 0.01 exploit, ele me retornou um, que conseguiu isso:
webmaster:webmastersphp01
dev:$6$sc774ygH$6x.FrAFwd2BxqzHWecKplcHM8yvCsQFLqM.srG/n0mkjWc2N3MqIMSlCAfZNAvIOmwP44UgZYHQwAFqdtWQ.N0:17406:0:99999:7:::
root:20230911
senha: 20230911
cat /home/pegakey/ket.txt
Cron jobs com NC! Depois melhore a shell com python.