0

I'm getting an error while running a ruby script. Even though I've downloaded and installed Metasploit.

`<main>': uninitialized constant Msf (NameError)

enter image description here

enter image description here

oguz ismail
  • 1
  • 16
  • 47
  • 69
echobash
  • 48
  • 7
  • Metasploit exploits need to be run through metasploit to have the correct environment (more than just a simple external ruby process provides). Usually, you would run the though `msfconsole` or `msfcli`. Refer to the [metasploit documentation](https://www.offensive-security.com/metasploit-unleashed/msfconsole/) for details. – Holger Just Mar 03 '20 at 13:19

0 Answers0