The following error messages appear while starting ARMITAGE:
i cant found a database.yml file i really need it. hre how to fix this:
- try setting MSF-DATABASE-CONFIG to file that exists
- did you use sudo to start this program? try sudo -E
- kali linux 1.x users try this :
service metasploit start service metasploit stop
kali linux 2.x users, try this: msfdb init
(Am using LUBUNTU distribution)
1 Answer
I went through this problem too, this is how I solved:
Check the location of your database.yml file, it could be in 2 places: /opt/metasploit-framework/ /home/youruser/.msf4/
Then set the variable MSF_DATABASE_CONFIG to that location: MSF_DATABASE_CONFIG=/thelocation
Finally, launch the armitage as root, while preserving the user enviroment: sudo -E armitage
it should work.