This machine was developed to prepare for OSCP. It is boot2root, tested on VirtualBox (but works on VMWare) and has two flags: user.txt and proof.txt.
0x01.信息收集,上nmap
可以发现可以发现1为网关,254为物理机,129为kali,那么135就是目标
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
root@JIYE:~/vulnhub/photographer# nmap -sP 192.168.1.0/24 -oN nmap.sP Starting Nmap 7.91 ( https://nmap.org ) at 2020-12-18 06:13 EST Nmap scan report for 192.168.1.1 Host is up (0.00024s latency). MAC Address: 00:50:56:C0:00:01 (VMware) Nmap scan report for 192.168.1.135 Host is up (0.00018s latency). MAC Address: 00:0C:29:2D:43:1A (VMware) Nmap scan report for 192.168.1.254 Host is up (0.00017s latency). MAC Address: 00:50:56:EB:EE:5F (VMware) Nmap scan report for 192.168.1.129 Host is up. Nmap done: 256 IP addresses (4 hosts up) scanned in 27.96 seconds root@JIYE:~/vulnhub/photographer#
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 55.84 seconds root@JIYE:~/vulnhub/photographer#
============================================= | Nbtstat Information for 192.168.1.135 | ============================================= Looking up status of 192.168.1.135 PHOTOGRAPHER <00> - B <ACTIVE> Workstation Service PHOTOGRAPHER <03> - B <ACTIVE> Messenger Service PHOTOGRAPHER <20> - B <ACTIVE> File Server Service ..__MSBROWSE__. <01> - <GROUP> B <ACTIVE> Master Browser WORKGROUP <00> - <GROUP> B <ACTIVE> Domain/Workgroup Name WORKGROUP <1d> - B <ACTIVE> Master Browser WORKGROUP <1e> - <GROUP> B <ACTIVE> Browser Service Elections
MAC Address = 00-00-00-00-00-00
====================================== | Session Check on 192.168.1.135 | ====================================== [+] Server 192.168.1.135 allows sessions using username '', password ''
============================================ | Getting domain SID for 192.168.1.135 | ============================================ Domain Name: WORKGROUP Domain Sid: (NULL SID) [+] Can't determine if host is part of domain or part of a workgroup
======================================= | OS information on 192.168.1.135 | ======================================= Use of uninitialized value $os_info in concatenation (.) or string at ./enum4linux.pl line 464. [+] Got OS info for 192.168.1.135 from smbclient: [+] Got OS info for 192.168.1.135 from srvinfo: PHOTOGRAPHER Wk Sv PrQ Unx NT SNT photographer server (Samba, Ubuntu) platform_id : 500 os version : 6.1 server type : 0x809a03
============================== | Users on 192.168.1.135 | ============================== Use of uninitialized value $users in print at ./enum4linux.pl line 874. Use of uninitialized value $users in pattern match (m//) at ./enum4linux.pl line 877.
Use of uninitialized value $users in print at ./enum4linux.pl line 888. Use of uninitialized value $users in pattern match (m//) at ./enum4linux.pl line 890.
========================================== | Share Enumeration on 192.168.1.135 | ==========================================
Sharename Type Comment --------- ---- ------- print$ Disk Printer Drivers sambashare Disk Samba on Ubuntu IPC$ IPC IPC Service (photographer server (Samba, Ubuntu)) SMB1 disabled -- no workgroup available
[+] Attempting to map shares on 192.168.1.135 //192.168.1.135/print$ Mapping: DENIED, Listing: N/A //192.168.1.135/sambashare Mapping: OK, Listing: OK //192.168.1.135/IPC$ [E] Can't understand response: NT_STATUS_OBJECT_NAME_NOT_FOUND listing \*
===================================================== | Password Policy Information for 192.168.1.135 | =====================================================
..........(省略部分无关紧要的内容)
============================================== | Getting printer info for 192.168.1.135 | ============================================== No printers returned.
enum4linux complete on Fri Dec 18 06:45:30 2020
root@JIYE:~#
可以发现samba服务的一个目录sambashare
//192.168.1.135/sambashare Mapping: OK, Listing: OK
匿名直接连接进行查看,发现一个wordpress站点的备份文件和一个txt文件
根据文件名mailsent.txt文件是一封发送的邮件,内容如下
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Message-ID: <4129F3CA.2020509@dc.edu> Date: Mon, 20 Jul 2020 11:40:36 -0400 From: Agi Clarence <agi@photographer.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daisa Ahomi <daisa@photographer.com> Subject: To Do - Daisa Website's Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit
Hi Daisa! Your site is ready now. Don't forget your secret, my babygirl ;)