rapid7 / metasploit-framework

Metasploit Framework
https://www.metasploit.com/
Other
34.15k stars 13.97k forks source link

Can not load another module #12321

Closed alidaghighi closed 5 years ago

alidaghighi commented 5 years ago

Steps to reproduce

  1. I create a directory called rdp in /opt/metasploit-framework/embedded/framework/modules/exploits/windows 2 . I copied cve_2019_0708_bluekeep_rce.rb in that directory
  2. I replaced rdp.rb in /opt/metasploit-framework/embedded/framework/lib/msf/core/exploit/
  3. Also replaced rdp_scanner.rb and cve_2019_0708_bluekeep.rb in/opt/metasploit-framework/embedded/framework/modules/auxiliary/scanner/rdp
  4. And then I run msfconsole and run reload_all

    Expected behavior

    I should've be able to use the eploit like use exploit/windows/rdp/cve_2019_0708_bluekeep_rce

Current behavior

I'm getting error

[-] No results from search
[-] Failed to load module: exploit/windows/rdp/cve_2019_0708_bluekeep_rce

System stuff

Metasploit version

Framework: 4.17.73-dev Console : 4.17.73-dev

I installed Metasploit with:

OS

Ubuntu 18.04

busterb commented 5 years ago

Modifying your installation without understanding what you're doing isn't going to end well. Perhaps check out this video: https://twitter.com/TheColonial/status/1173789138417418246