To access material, start machines and answer questions login.
Throughout this room, we'll be looking at alternative modes of exploitation without the use of Metasploit or really exploitation tools in general beyond nmap and dirbuster. To wrap up the room, we'll be pivoting back to these tools for persistence and additional steps we can take. Without further delay, let's deploy our target machine!
Art by one of our members, Varg - THM Profile - Instagram - Blaster Merch - Twitter
This room is a remix of my previous room Retro with some complications I added to that room having been removed. For increased difficulty and an exercise in patience, check that room out after this. In addition, this room is the sequel to Ice. - DarkStar7471
Deploy the machine! This is a Windows box so give it a few minutes (3-5 at max) to come online
Now that we've launched our target, let's perform some basic enumeration of the services running on it!
How many ports are open on our target system?
Looks like there's a web server running, what is the title of the page we discover when browsing to it?
Interesting, let's see if there's anything else on this web server by fuzzing it. What hidden directory do we discover?
Navigate to our discovered hidden directory, what potential username do we discover?
Crawling through the posts, it seems like our user has had some difficulties logging in recently. What possible password do we discover?
Log into the machine via Microsoft Remote Desktop (MSRDP) and read user.txt. What are it's contents?
Now that we've gained access to our target system, let's see if we can find a way to escalate. To start, let's scout around the system to see if we can find anything of interest.
When enumerating a machine, it's often useful to look at what the user was last doing. Look around the machine and see if you can find the CVE which was researched on this server. What CVE was it?
Looks like an executable file is necessary for exploitation of this vulnerability and the user didn't really clean up very well after testing it. What is the name of this executable?
Research vulnerability and how to exploit it. Exploit it now to gain an elevated terminal!
Now that we've spawned a terminal, let's go ahead and run the command 'whoami'. What is the output of running this?
Now that we've confirmed that we have an elevated prompt, read the contents of root.txt on the Administrator's desktop. What are the contents? Keep your terminal up after exploitation so we can use it in task four!
Now that we've thoroughly compromised our target machine, let's return to our exploitation tools so that we can gain remote shell access and persistence.
Return to your attacker machine for this next bit. Since we know our victim machine is running Windows Defender, let's go ahead and try a different method of payload delivery! For this, we'll be using the script web delivery exploit within Metasploit. Launch Metasploit now and select 'exploit/multi/script/web_delivery' for use.
Last but certainly not least, let's look at persistence mechanisms via Metasploit. What command can we run in our meterpreter console to setup persistence which automatically starts when the system boots? Don't include anything beyond the base command and the option for boot startup.
Run this command now with options that allow it to connect back to your host machine should the system reboot. Note, you'll need to create a listener via the handler exploit to allow for this remote connection in actual practice. Congrats, you've now gain full control over the remote host and have established persistence for further operations!
Created by
Room Type
Free Room. Anyone can deploy virtual machines in the room (without being subscribed)!
Users in Room
34,311
Created
1947 days ago
Ready to learn Cyber Security? Create your free account today!
TryHackMe provides free online cyber security training to secure jobs & upskill through a fun, interactive learning environment.
Already have an account? Log in