Skip to content
RCE Write-up Beginner

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.

Sam Follow

Published on systemweakness.com

This exploit have module in ‘metasploit’project, Let’s running ‘metasploit’.

Sam, on systemweakness.com

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

  1. Scan the target with nmap to find open ports and vulnerabilities
  2. Search Metasploit for the EternalBlue module and select it
  3. Set the target and local host options and run the exploit
  4. Background the shell and use the shell-to-Meterpreter post module
  5. Dump password hashes with hashdump and crack them with John
  6. 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.

More by Sam

View all

6 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.