Metasploit-framework: Unable to use Eternalblue win 8 exploit

Created on 27 Apr 2020  Â·  13Comments  Â·  Source: rapid7/metasploit-framework

When I attempt to use exploit/windows/smb/ms17_010_eternalblue_win8 exploit I get an error saying that the exploit is not found, but it then shows me the exploit in matching modules with every word highlighted, which verifies that I didn't misspell it. It then says that it's being used when it's not.

37286

Metasploit version

Framework: 5.0.87-dev-1bec0a9c199735e9088ebfb0e6332fed5ab49db8
Console : 5.0.87-dev-1bec0a9c199735e9088ebfb0e6332fed5ab49db8

I installed Metasploit with:

  • [ ] Omnibus installer (nightly)

OS

Windows 10 Home

Stale bug confirmed library

All 13 comments

Looks like the enhanced use command doesn't work too well with external modules that fail to load.

Do you know where your framework.log is? Can you find the module error in there?

Looks like the enhanced use command doesn't work too well with external modules that fail to load.

A few issues have been created specifically for this module - probably as it is the most popular. It might be nice if msfconsole was a little more verbose as to why the module failed to load.

the error in the framework.log reads:
core: C:/metasploit-framework/embedded/framework/modules/exploits/windows/smb/ms17_010_eternalblue_win8.py failed to load due to the following error: Errno::ENOENT No such file or directory
and I have had this error before and have reinstalled metasploit since then

Perhaps a stupid question, but does C:/metasploit-framework/embedded/framework/modules/exploits/windows/smb/ms17_010_eternalblue_win8.py exist? And is it readable with whatever user permissions you have?

Yep. The file is there and I was able to read it.

Do we even support external modules on Windows? I thought not?

Either way, the Framework should prevent users from trying to use external modules if they're not loaded or even supported.

Do we even support external modules on Windows? I thought not?

No idea, but I'm pretty sure it requires Python to be installed and in %PATH%. If the metasploit installer doesn't set up Python, then it's not going to work.

¯\_(ツ)_/¯

I have python in PATH, so that's probably the issue. As pointed out there's not a lot of help from msfconsole.

I'm reopening this, since there's room for improvement in a) the error message and b) how we handle external modules.

Hi!

This issue has been left open with no activity for a while now.

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.

When I attempt to use exploit/windows/smb/ms17_010_eternalblue_win8 exploit I get an error saying that the exploit is not found, but it then shows me the exploit in matching modules with every word highlighted, which verifies that I didn't misspell it. It then says that it's being used when it's not.

37286

Metasploit version

Framework: 5.0.87-dev-1bec0a9c199735e9088ebfb0e6332fed5ab49db8
Console : 5.0.87-dev-1bec0a9c199735e9088ebfb0e6332fed5ab49db8

I installed Metasploit with:

* [ ]  Omnibus installer (nightly)

OS

Windows 10 Home
nano /user/share/metasploit-framework/modules/exploits/smb/ms17_010_eternalblue_win8.py
Change the first line to
!#/etc/ python3
That fixed my problem im running kali linux 2020.3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

verapex picture verapex  Â·  3Comments

fluit105 picture fluit105  Â·  3Comments

Funeoz picture Funeoz  Â·  3Comments

felipee07 picture felipee07  Â·  3Comments

miholtz picture miholtz  Â·  3Comments