Skip to content
RCE Write-up Intermediate

Exploit Eternal Blue ms17 010 For Window 7 And Higher Custom Payload

The article describes exploiting the MS17-010 (EternalBlue) vulnerability on a Windows 7 machine to execute a custom payload. The payload disables Windows Defender and the firewall, then downloads and runs files to establish reverse shells.

Nol White Hat Follow

Published on infosecwriteups.com

During my OSCP training I had a lot of trouble rooting the Eternal Blue targets. After many hours of troubleshooting, it finally worked.

Nol White Hat, on infosecwriteups.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 SMBv1 protocol implementation in Windows contains a buffer overflow that allows remote code execution.

Impact

The exploit could allow an attacker to execute arbitrary code and gain reverse shells on a vulnerable Windows 7 machine, but the payload's success depends on the target's configuration (e.g., PowerShell availability).

What the attacker needed

Target runs Windows 7 or higher and is vulnerable to…; Attacker has network access to target's SMB port; Attacker has Kali Linux with necessary tools

How it was found

  1. Set up Impacket and a Python2 virtual environment on the attacker machine.
  2. Scan the target for SMB vulnerabilities using nmap scripts.
  3. Create a C source file that disables the firewall and downloads additional payload files.
  4. Compile the C source into a Windows executable.
  5. Prepare PHP and Powercat reverse shell payloads and a batch file to execute them.
  6. Set up listeners (HTTP, ICMP, Meterpreter, netcat) and run the MS17-010 exploit with the custom payload.

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 walkthrough for using a known Windows flaw called EternalBlue to take control of an unpatched computer. The author builds a custom program that turns off security features and connects back to the attacker, giving them remote access.

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 Nol White Hat

View all

8 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.