Add a Custom Module

TEST THIS:

  • Firstly, search for the module from Exploit-DB:
searchsploit winbox
  • Copy it over to the msf4 exploits directory:
mkdir -p /usr/share/metasploit-framework/modules/exploits/windows/remote/ && cp /usr/share/exploitdb/exploits/windows/remote/45170.py "$_"
  • Finally, update your index and/or reload Metasploit:
updatedb
reload_all