Cannot update metasploit
Problem: you get the following error when trying to update metasploit:
$ sudo msfupdate
[sudo] password for xxxx:
[*]
[*] Attempting to update the Metasploit Framework...
[*]
[-] Raised an exception when trying to update:
[-] #
[-]
[-] To update your binary installation, please make
[-] sure the required Metasploit services are running.
/opt/metasploit/apps/pro/engine/update.rb:62:in `': undefined method `[]' for nil:NilClass (NoMethodError)
Solution
$ sudo msfupdate
[sudo] password for xxxx:
[*]
[*] Attempting to update the Metasploit Framework...
[*]
[-] Raised an exception when trying to update:
[-] #
[-]
[-] To update your binary installation, please make
[-] sure the required Metasploit services are running.
/opt/metasploit/apps/pro/engine/update.rb:62:in `
Solution
option 1) run msfupdate again after logging in at https://localhost:3790 with your account and it works
option 2) Another way is to run msfconsole and once the msf shell is ready you enter
msf>sudo msfupdate
option 2) Another way is to run msfconsole and once the msf shell is ready you enter
msf>sudo msfupdate