Posts

Showing posts from January, 2017

Metasploit database no connection

Just dumping the steps I followed to rebuild Metasploit database after Kali update. msf > db_status [*] postgresql selected, no connection msf > su postgres [*] exec: su postgres postgres@kali:/root$ createuser root -P Enter password for new role: Enter it again: postgres@kali:/root$ createdb --owner=root msf_database postgres@kali:/root$ exit exit msf > db_status [*] postgresql selected, no connection msf > db_connect root: @127.0.0.1:5432/msf_database [*] Rebuilding the module cache in the background... msf > db_status [*] postgresql connected to msf_database * alternatively - just open the metasploit framework on the icon from the desktop it will create a database user 'msf', databases and add the config file :-) -- fun with opensource!