sjmin2121 Posted December 4, 2017 Share Posted December 4, 2017 Hello I have a problem. I don't know how to set up a database for metasploit msf > db_status postgresql selected, no connection /opt/metasploit-framework/embedded/framework/lib/rex/ui/text/shell.rb:210:in `initialize': Permission denied @ rb_sysopen - /Users/jiminsha/.msf4/history (Errno::EACCES) from /opt/metasploit-framework/embedded/framework/lib/rex/ui/text/shell.rb:210:in `open' from /opt/metasploit-framework/embedded/framework/lib/rex/ui/text/shell.rb:210:in `run' from /opt/metasploit-framework/embedded/framework/lib/metasploit/framework/command/console.rb:48:in `start' from /opt/metasploit-framework/embedded/framework/lib/metasploit/framework/command/base.rb:82:in `start' from /opt/metasploit-framework/bin/../embedded/framework/msfconsole:48:in `<main>' I am on mac... that is why I can't find any tutorial please help. Quote Link to comment Share on other sites More sharing options...
Just_a_User Posted December 4, 2017 Share Posted December 4, 2017 31 minutes ago, sjmin2121 said: I am on mac... that is why I can't find any tutorial maybe this helps http://www.adeptus-mechanicus.com/codex/contrib/ln-msfapp/ln-msfapp.php Quote Link to comment Share on other sites More sharing options...
b0N3z Posted December 5, 2017 Share Posted December 5, 2017 You need to go to the directory that metasploit is in and look for msfdb. Then run sudo msfdb init. That what works on Linux should work on Mac but Mac is pain to setup msf on Quote Link to comment Share on other sites More sharing options...
digip Posted December 5, 2017 Share Posted December 5, 2017 start the postgresql service, then restart msfconsole. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.