Sitemap

TryHackMe Walkthrough : Ice

5 min readOct 25, 2020

--

Press enter or click to view image in full size

Today we will be looking at ice from TryHackMe. Ice is a public room anyone can exploit the machine. This is easy machine but there is an interesting vulnerability “Icecast”. It can attract everyone’s attention.

Summary :

  • There are 7 tasks need to solve. Connect, Recon, Gain Acess, Escalate, Looting, Post-Exploitation, Extra Credit!
  • There is an open port on machine 8000/tcp Icecast.
  • There are two important open ports on machine 139 and 445.
  • Scan vuln : CVE-2007–6750 streaming media server.
  • Scan vuln: CVE-2017–0143 Risk factor : High.
  • There is an important vulnerable Icecast 2.0.1 streaming media server inside system.
  • There is an important vulnerable eternal blue inside system.
  • There are no flags anywhere.

Let’s start with this machine.

Task 1 : Connect

Connect to the TryHackme vpn server and deploy the box.

They told what to do.

Keep following this part.

Press enter or click to view image in full size

Task 2 : Recon

Press enter or click to view image in full size

I’m going to answer the questions asked to me one by one.

The “ice” machine IP is 10.10.62.158

We are going to apply the usual methodology of penetration testing as we have applied before. Let’s start with enumeration learn as much about the machine as possible.

Enumaration

We are going to start with the nmap scan to gather more information about the services and version running on this machine.

nmap -T4 -A -p- <targetip>
Press enter or click to view image in full size

As we can see port 8000/tcp icecast streaming media server. If you ask what it means, Buffer overflow in Icecast 2.0.1 and earlier allows remote attackers to execute arbitrary code via an HTTP request with a large number of headers.

#4 ans : We can see what the open 8000/tcp port is. Icecast

#5 ans : We can see that the hostname is DARK-PC.

Press enter or click to view image in full size
nmap -sS <targetip>

#3 ans: 3389/tcp ms-wbt-server.

nmap -T4 -A -p- --script 10.10.62.158 -vv
Press enter or click to view image in full size

Task 3 : Gain Acess

Press enter or click to view image in full size

We going to cvedetails.com and find vulnerability details.

We have go to research this vulnerable.

#1, #2 ans:

https://www.cvedetails.com/cve/CVE-2004-1561/

Get Emre Alkaya’s stories in your inbox

Join Medium for free to get updates from this writer.

We found it, there is an important vulnerability and exploit Icecast 2.0.1.

Press enter or click to view image in full size

We can see CVE-2004–1561 and execute code overflow.

Press enter or click to view image in full size

While doing this, we get help from the search in metasploit.

#4 ans:

msfconsole
Press enter or click to view image in full size

We can learn do search which exploit to use by searching.

#5 ans : We can see “rhosts”.

Task 4 : Escalate

Press enter or click to view image in full size
nmap rhosts <target ip>
exloit
getsystem
systeminfo
background or ctrl + z
Press enter or click to view image in full size

#1, #2, #3, #4 : We can see all system information with the sysinfo command.

Press enter or click to view image in full size

It is requested to use the post/multi/recon/local_exploit_suggester.

use post/multi/recon/local_exploit_suggester
option
set lhost tun0
Press enter or click to view image in full size

It is requested to use the exploit/windows/local/bypassuac_evetvwr.

Press enter or click to view image in full size
exploit
getprivs
Press enter or click to view image in full size

#4 We can see owership file. SeTakeOwnershipPrivilege.

Task 5 : Looting

Press enter or click to view image in full size
Press enter or click to view image in full size
migrate -N spoolsv.exe
getuid
help

#1, #2, # 3 , #4, # 5, #6 ans :

Press enter or click to view image in full size

#7, #8 ans :

Kiwi help.

We got the admin password.

Press enter or click to view image in full size

Task 6 : Post-Exploitation

I don’t need to explain these.

Press enter or click to view image in full size

Task 7 : Extra Credit!

Exploit link : https://www.exploit-db.com/exploits/568

Press enter or click to view image in full size

Bonus :

I took a screenshot for you from the computer I accessed.

Press enter or click to view image in full size
Press enter or click to view image in full size

Hope you guys enjoyed this tutorial, let me know if you try this out. Follow me for more projects like this!

--

--