Skip to content
RCE Write-up Beginner

Complete Guide: Network Reconnaissance and Exploiting MS17–010

A lab walkthrough shows a Windows 7 machine with SMB port 445 open being compromised with the EternalBlue exploit, giving the attacker a command shell. The author then runs basic post-exploitation commands to map network adapters and local accounts.

MAB Follow

Published on medium.com

“For networks expanding rapidly, protocol configuration and patch management often take a backseat — until a catastrophic breach occurs. This practical audit blueprint provides:”

MAB, on medium.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 a memory corruption bug in the SMBv1 service on an unpatched Windows 7 host, which the text attributes to SMBv1 handling raw buffers poorly.

Impact

An attacker on the network could gain a remote command shell on the unpatched host and use its second network adapter to pivot into an internal network.

What the attacker needed

Network access to port 445; target runs unpatched Windows 7 with SMBv1

The fix

The text says the host should be upgraded to a supported Windows version and SMBv1 disabled, and it does not state that anything was actually fixed.

How it was found

  1. Scan the target host to find open ports and service versions.
  2. Select the EternalBlue exploit module in Metasploit and set the target address.
  3. Choose a bind TCP shell payload and run the exploit.
  4. Receive a command shell session on the target.
  5. Run ipconfig to map the host's network adapters.
  6. List local users and the administrators group.

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.

This is a practice exercise on a deliberately old, unpatched Windows machine in a lab. A flaw in how Windows handled file-sharing traffic (SMB) let the tester run commands on the machine remotely. It is a well-known bug that was fixed years ago, so real systems that are kept updated are not affected.

What is RCE?

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

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.