Grandmaster rank emblem

Lvl 99

Level XP3,807/5,718

3807 of 5718
Grandmaster dreadnaught
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.

0Reconnmap1LootSMB share2LootAES time-brute3FootholdTOTP decrypt4FootholdTeamCity RCE5Laterale.black6Priv escAD CS ESC1
1Recon2Loot3Foothold4Lateral5Priv escnmap1SMB share2AES time-brute3TOTP decrypt4TeamCity RCE5e.black6AD CS ESC17

How it went

  1. 0
    nmap

    An nmap scan of the Windows host exposes SMB.

  2. 1
    SMB share

    A readable Development share holds a .NET Encryptor app and an encrypted file.

  3. 2
    AES 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.

  4. 3
    TOTP decrypt

    The vault's layered-AES authenticator secret is decrypted to generate the TOTP for s.blade's TeamCity login.

  5. 4
    TeamCity RCE

    In TeamCity, a build patch run as a personal build executes a payload, returning a shell as the service account.

  6. 5
    e.black

    That shell recovers e.black's plaintext password, giving an Evil-WinRM session and the user flag.

  7. 6
    AD 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.