Once the scan completes, we'll see a number of interesting ports open on this machine. As you might have guessed, the firewall has been disabled (with the service completely shutdown), leaving very little to protect this machine. One of the more interesting ports that is open is Microsoft Remote Desktop (MSRDP). What port is this open on?
Answer: 3389
There was also port 3389/tcp but is doesn't show up every time.
What service did nmap identify as running on port 8000? (First word of this service)
Answer: Icecast
Read nmap scan result.
What does Nmap identify as the hostname of the machine? (All caps for the answer)
Now that we've identified some interesting services running on our target machine, let's do a little bit of research into one of the weirder services identified: Icecast. Icecast, or well at least this version running on our target, is heavily flawed and has a high level vulnerability with a score of 7.5 (7.4 depending on where you view it). What type of vulnerability is it? Use https://www.cvedetails.com for this question and the next.
What is the CVE number for this vulnerability? This will be in the format: CVE-0000-0000
Answer: CVE-2004-1561
After Metasploit has started, let's search for our target exploit using the command 'search icecast'. What is the full path (starting with exploit) for the exploitation module? This module is also referenced in 'RP: Metasploit' which is recommended to be completed prior to this room, although not entirely necessary.
Answer: exploit/windows/http/icecast_header
Run the command from the question.
Following selecting our module, we now have to check what options we have to set. Run the command show options. What is the only required setting which currently is blank?
Woohoo! We've gained a foothold into our victim machine! What's the name of the shell we have now?
Answer: meterpreter
What user was running that Icecast process? The commands used in this question and the next few are taken directly from the 'RP: Metasploit' room.
Answer: Dark
List process:
What build of Windows is the system?
Answer: 7601
System info:
Now that we know some of the finer details of the system we are working with, let's start escalating our privileges. First, what is the architecture of the process we're running?
Answer: x64
From previous command output.
Running the local exploit suggester will return quite a few results for potential escalation exploits. What is the full path (starting with exploit/) for the first returned exploit?
Answer: exploit/windows/local/bypassuac_eventvwr
Now that we've set our session number, further options will be revealed in the options menu. We'll have to set one more as our listener IP isn't correct. What is the name of this option?
Answer: LHOST
We can now verify that we have expanded permissions using the command SeTakeOwnershipPrivilege. What permission listed allows us to take ownership of files?
In order to interact with lsass we need to be 'living in' a process that is the same architecture as the lsass service (x64 in the case of this machine) and a process that has the same permissions as lsass. The printer spool service happens to meet our needs perfectly for this and it'll restart if we crash it! What's the name of the printer service?
Mentioned within this question is the term 'living in' a process. Often when we take over a running program we ultimately load another shared library into the program (a dll) which includes our malicious code. From this, we can spawn a new thread that hosts our shell.
Answer: spoolsv.exe
Let's check what user we are now with the command getuid. What user is listed?
Answer: NT AUTHORITY\SYSTEM
Which command allows up to retrieve all credentials?
Answer: creds_all
Run this command now. What is Dark's password? Mimikatz allows us to steal this password out of memory even without the user 'Dark' logged in as there is a scheduled task that runs the Icecast as the user 'Dark'. It also helps that Windows Defender isn't running on the box ;) (Take a look again at the ps list, this box isn't in the best shape with both the firewall and defender disabled)
What command allows us to dump all of the password hashes stored on the system? We won't crack the Administrative password in this case as it's pretty strong (this is intentional to avoid password spraying attempts)
Answer: hashdump
While more useful when interacting with a machine being used, what command allows us to watch the remote user's desktop in real time?
Answer: screenshare
Check the help command.
How about if we wanted to record from a microphone attached to the system?
Answer: record_mic
Check the help command.
To complicate forensics efforts we can modify timestamps of files on the system. What command allows us to do this? Don't ever do this on a pentest unless you're explicitly allowed to do so! This is not beneficial to the defending team as they try to breakdown the events of the pentest after the fact.
Answer: timestomp
Check the help command.
Mimikatz allows us to create what's called a golden ticket, allowing us to authenticate anywhere with ease. What command allows us to do this?
Golden ticket attacks are a function within Mimikatz which abuses a component to Kerberos (the authentication system in Windows domains), the ticket-granting ticket. In short, golden ticket attacks allow us to maintain persistence and authenticate as any user on the domain.