Originally Posted by
Malachai
Well just ran the update for Kali and notice there was an update for 94.6 mb... Well after the upgrade metasploit broke... ugh!!!!!!!!
I did stop and start the postgresql service.
=[ metasploit v4.6.0-dev [core:4.6 api:1.0]
+ -- --=[ 1053 exploits - 590 auxiliary - 174 post
+ -- --=[ 275 payloads - 28 encoders - 8 nops
msf > db_status[*] postgresql selected, no connection
msf > db_connect root@metasploit
[-] Error while running command db_connect: Failed to connect to the database: FATAL: role "root" does not exist
Call stack:
/opt/metasploit/apps/pro/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1600:in `db_connect_postgresql'
/opt/metasploit/apps/pro/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1438:in `cmd_db_connect'
/opt/metasploit/apps/pro/msf3/lib/rex/ui/text/dispatcher_shell.rb:427:in `run_command'
/opt/metasploit/apps/pro/msf3/lib/rex/ui/text/dispatcher_shell.rb:389:in `block in run_single'
/opt/metasploit/apps/pro/msf3/lib/rex/ui/text/dispatcher_shell.rb:383:in `each'
/opt/metasploit/apps/pro/msf3/lib/rex/ui/text/dispatcher_shell.rb:383:in `run_single'
/opt/metasploit/apps/pro/msf3/lib/rex/ui/text/shell.rb:200:in `run'
/opt/metasploit/apps/pro/msf3/msfconsole:168:in `<main>'
msf > exit
root@Matrix:~# msfupdate[*][*] Attempting to update the Metasploit Framework...[*]
[*] Checking for updates[*] No updates available
other thing also when you do the msfupdate it doesn't pick up any updates. But if you're in metasploit and run the msfpro you will see new updates.. weird how that works.
Has anyone had this problem?
This has been answered elsewhere but with Kali, many of the services that started on login with Backtrack 5 no longer start automatically.
Run the following:
service postgresql start
service metasploit start
or, make a script and put it in /etc/init.d
Example
Code:
#!/bin/bash
service postgresql start;
service metasploit start;
save the file as msf or something other than metasploit, and put the file in /etc/init.d/
Another option, and the way I do it is the following:
Code:
#!/bin/bash
service postgresql start;
service metasploit start;
msfconsole;
I then save the above as metasploit.sh and put it in root's home folder.
Make sure to chmod +x the file.
then, ./metasploit.sh to start the services AND start msfconsole. Again, there are several options. The point being, make sure to start the postgresql service AND the metasploit service BEFORE staring msfconsole.