When i updated my MSF to the latest nightly build 4.11.4 ,whenever i try to launch msfconsole it says that i have to initialize msfdb as a non rot user ,what to do?
OS:Kali Linux 2.0 64 bit
When i updated my MSF to the latest nightly build 4.11.4 ,whenever i try to launch msfconsole it says that i have to initialize msfdb as a non rot user ,what to do?
OS:Kali Linux 2.0 64 bit
Last edited by theo1996; 2015-10-29 at 10:53. Reason: Added adional information.
By the sounds of it, you are not using the Metasploit package in Kali.
Either their package/setup or from the github.
You would need to contact them (rapid7).
This is a Kali-Linux support forum - not general IT/infosec help.
Useful Commands: OS, Networking, Hardware, Wi-Fi
Troubleshooting: Kali-Linux Installation, Repository, Wi-Fi Cards (Official Docs)
Hardware: Recommended 802.11 Wireless Cards
Documentation: http://docs.kali.org/ (Offline PDF version)
Bugs Reporting & Tool Requests: https://bugs.kali.org/
Kali Tool List, Versions & Man Pages: https://tools.kali.org/
[QUOTE]Please run msfdb as a non-root user
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%
%% %%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%
%% %% %%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%
%% % %%%%%%%% %%%%%%%%%%% http://metasploit.pro %%%%%%%%%%%%%%%%%%%%%%%%%
%% %% %%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%
%% %%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%% %%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%
%%%% %% %%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% %%%%%
%%%% %% %% % %% %% %%%%% % %%%% %% %%%%%% %%
%%%% %% %% % %%% %%%% %%%% %% %%%% %%%% %% %% %% %%% %% %%% %%%%%
%%%% %%%%%% %% %%%%%% %%%% %%% %%%% %% %% %%% %%% %% %% %%%%%
%%%%%%%%%%%% %%%% %%%%% %% %% % %% %%%% %%%% %%% %%% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% %%%%%%% %%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% %%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%
=[ metasploit v4.11.4-dev-a65172bbcbb32e42575fba0345b29d62cb8e273e]
+ -- --=[ 1500 exploits - 863 auxiliary - 251 post ]
+ -- --=[ 432 payloads - 37 encoders - 8 nops ]
+ -- --=[ Free Metasploit Pro trial: http://r-7.co/trymsp ]
msf >
[/QUOTE]
Then i try to run it as a new non root user1
msf > gksu[*] exec: gksu
/opt/metasploit-framework/embedded/framework/msfdb:128:in `initialize': No such file or directory @ rb_sysopen - /home/user1/.msf4/database.yml (Errno::ENOENT)
from /opt/metasploit-framework/embedded/framework/msfdb:128:in `open'
from /opt/metasploit-framework/embedded/framework/msfdb:128:in `init_db'
from /opt/metasploit-framework/embedded/framework/msfdb:232:in `<main>'
msf >
Yeah. I'm using a fresh Kali rolling install - and I get the same error. Plus, only using the Kali rolling repos and not Rapid7's metasploit package. What information should I post to help everyone troubleshoot this thing and move forward?
Do this:
sudo apt-get update
sudo apt-get upgrade
cd [whatever directory you put msfconsole in, usually /opt]
sudo msfconsole [if this doesn't do anything do "sudo ./msfconsole"]