kepade8
kepade8
采纳率100%
2016-12-09 09:02 阅读 4.8k

[kali linux]msfconsole可以图形界面启动,但是终端启动出错

root@kepade:~# msfconsole

/usr/share/metasploit-framework/lib/metasploit/framework/parsed_options/base.rb:42:in initialize': missing argument: -y (OptionParser::MissingArgument)
from /usr/share/metasploit-framework/lib/metasploit/framework/command/base.rb:69:in
new'
from /usr/share/metasploit-framework/lib/metasploit/framework/command/base.rb:69:in parsed_options'
from /usr/share/metasploit-framework/lib/metasploit/framework/command/base.rb:47:in
require_environment!'
from /usr/share/metasploit-framework/lib/metasploit/framework/command/base.rb:81:in start'
from /usr/bin/msfconsole:48:in
'
bash: /usr/share/metasploit-framework/config/database.yml: 权限不够

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

2条回答 默认 最新

  • 已采纳
    kepade8 kepade8 2016-12-10 15:51

    楼主已经解决,问题并不是出在软件上,我把root文件夹的隐藏文件调出来,找到 .bashrc 把最后的那几行关于msfconsole的代码删掉,后重启令其生效,最后在终端输入#msfdb reinit
    就可以啦,这样也一并解决了连接postgresql的问题¥-¥

    点赞 评论 复制链接分享
  • dabocaiqq dabocaiqq 2016-12-10 15:14
    点赞 评论 复制链接分享

相关推荐