- Machine
- Coder
- OS
- Windows
- Difficulty
- Insane
- Steps
- 6
- Added
- 21 Dec 2023
A time-seeded AES app from SMB is brute-forced to decrypt a vault; its TOTP unlocks a TeamCity build-patch RCE, and an AD CS ESC1 template yields the Administrator hash.
How it went
- 0nmap
An nmap scan of the Windows host exposes SMB.
- 1SMB share
A readable Development share holds a .NET Encryptor app and an encrypted file.
- 2AES time-brute
DotPeek shows the app seeds its AES key and IV from a Unix timestamp; brute-forcing the file's SMB timestamps decrypts an archive holding a vault.
- 3TOTP decrypt
The vault's layered-AES authenticator secret is decrypted to generate the TOTP for s.blade's TeamCity login.
- 4TeamCity RCE
In TeamCity, a build patch run as a personal build executes a payload, returning a shell as the service account.
- 5e.black
That shell recovers e.black's plaintext password, giving an Evil-WinRM session and the user flag.
- 6AD CS ESC1
e.black can publish an ESC1-vulnerable certificate template; Certipy requests an Administrator certificate and its NTLM hash to log in as Administrator.