Matt-London / Install-Armitage-on-Linux

This is a program that will install Metasploit-Framework and Armitage on to any Debian-based Linux Distro (it can also be adapted to work on Mac). This was made possible using a combination of my own code, darkoperator's, and a nightly Metasploit installer from rapid7.
MIT License
58 stars 47 forks source link

Authentication Fail #1

Closed 555STi closed 5 years ago

555STi commented 5 years ago

Hi, great work with the script, but I had a problem. Everything worked flawlessly during installation, but when I tried to load armitage, ths message came up.

imagen

When I run sudo msfconsole it comes up with this message.

No local database connected. Please connect to a local database before connecting to a remote data service.

WARNING: No database support: could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5433?

When I type db_status it says

msf5 > db_status
[*] postgresql selected, no connection

What can I do?

Thanks in advance!

Matt-London commented 5 years ago

Try:

msfdb init

It should rebuild the database. Let me know if that doesn't fix the issue and I'll look closer at the problem. Thank you for bringing this to my attention.

Matt-London commented 5 years ago

Please reply within the next two days, if your issue is not resolved; otherwise, I will close this issue. Thank you.

Matt-London commented 4 years ago

Alright before I change the code, try running this and let me know how it works (run it in an elevated shell):

echo "production:\nadapter: postgresql\ndatabase: msf\nusername: msf\npassword: root\nhost: 127.0.0.1\nport: 5432\npool: 75\ntimeout: 5" > /opt/metasploit-framework/config/database.yml

Matt-London commented 4 years ago

Whoops. Wrong issue