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.
“For networks expanding rapidly, protocol configuration and patch management often take a backseat — until a catastrophic breach occurs. This practical audit blueprint provides:”
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
- Scan the target host to find open ports and service versions.
- Select the EternalBlue exploit module in Metasploit and set the target address.
- Choose a bind TCP shell payload and run the exploit.
- Receive a command shell session on the target.
- Run ipconfig to map the host's network adapters.
- 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.