9

I am trying to setup Metasploit for penetration testing.

However, I cannot get the database to connect. Also whenever I attempt to start the service using service metasploit start I get the following error:

failed to start metasploit.service 
unit metasploit.service failed to load 
no such file or directory

I find this odd because I am able to run the program using:

msfconsole

I haven't been able to find any solutions online, can anyone here help me out?

4
  • have you tried the metasploit forums on Rapid7?
    – schroeder
    Commented Nov 1, 2015 at 17:56
  • When I Google the error, I get directed here: kali.org/news/kali-linux-20-released
    – schroeder
    Commented Nov 1, 2015 at 17:59
  • did you use the new Kali method for starting metasploit?
    – schroeder
    Commented Nov 1, 2015 at 18:00
  • I'm closing this because it belongs on a Kali or metasploit forum. An answer was found in 30 seconds of Googling the error, resulting in a Kali forum post.
    – schroeder
    Commented Nov 1, 2015 at 20:31

1 Answer 1

8
#/etc/init.d/postgresql
service --status-all
service postgresql start
service postgresql status
#/usr/bin/msfconsole
msfdb init
msfconsole
msf > db_status

Not the answer you're looking for? Browse other questions tagged .