Htm Blue
A walkthrough of a TryHackMe room where a Windows machine running SMB is exploited with the EternalBlue exploit to gain a shell, then escalated to a Meterpreter session and used to dump password hashes. The attacker could crack a user's password and read files across the system, including the SAM database location and a user's documents.
This exploit have module in ‘metasploit’project, Let’s running ‘metasploit’.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the machine was left unpatched against the EternalBlue SMB vulnerability (MS17-010), allowing remote code execution.
Impact
An attacker could gain remote code execution as a privileged user, dump password hashes and read sensitive files on the machine.
What the attacker needed
Network access to SMB port; unpatched Windows host
How it was found
- Scan the target with nmap to find open ports and vulnerabilities
- Search Metasploit for the EternalBlue module and select it
- Set the target and local host options and run the exploit
- Background the shell and use the shell-to-Meterpreter post module
- Dump password hashes with hashdump and crack them with John
- Read the flag files from the system root, the config directory and the user's documents
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The machine runs an old Windows file-sharing service (SMB) with a well-known flaw that lets an attacker run commands on it remotely. The author uses a ready-made tool (Metasploit) to take control, then reads stored password hashes and cracks one to recover a password. With that level of access, files anywhere on the machine can be read.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.