Skip to content
RCE Write-up Intermediate

Eternal Blue Exploit And Persistence

The text walks through using a public EternalBlue exploit module against an unpatched Windows host on a local network, then planting a persistence service so the attacker regains a reverse shell after reboot. It is a tutorial rather than a disclosure, so no specific vulnerability in a product is analysed.

Karthikeyan Follow

Published on systemweakness.com

We are going to see the eternal blue exploit and persistence module, the eternal blue exploit will work only on some windows machines like nonupdated windows 7, windows server 2008, etc. And the target machine should be on the local network.

Karthikeyan, 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 target runs an unpatched version of Windows whose SMB service is vulnerable to the publicly known EternalBlue flaw, but the text does not analyse the underlying bug.

Impact

An attacker on the same local network could gain code execution on an unpatched Windows host and keep a reverse shell that reconnects after each reboot.

What the attacker needed

Target on the same local network; unpatched Windows host; Wine installed on attacker machine; Metasploit installed

How it was found

  1. Clone the EternalBlue Doublepulsar module and copy its files into the Metasploit SMB modules directory.
  2. Update the database and open msfconsole so the new module loads.
  3. Select the EternalBlue module and set a Meterpreter reverse TCP payload.
  4. Set the required options to match the target architecture and run the exploit.
  5. Background the session and run the persistence service module with a retry interval.
  6. Start a listener matching the persistence payload and wait for the target to reboot.

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 step-by-step guide, not a bug report. It shows how someone with access to a local network can use a known Windows file-sharing flaw (EternalBlue) to run code on an old, unpatched machine, and then install a program that reconnects to the attacker every time the machine starts. The 'persistence' part just means keeping access after a reboot.

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.