deadsecdefalt Posted November 28, 2018 Share Posted November 28, 2018 Ive been trying to get armitage working for a while now and i cant seem to find the exact answer to the problem im having so here goes. when i open armitage it fails to connect to the database and says password auth. failed for user "msf". i have enabled the postgresql service i cannot start the metasploit service as it says service not found metasploit framework is installed and working, but after a restart it goes to "password auth. failed for user "msf"" i have ran msfdb init i have ran msfupdate i have reinstalled metasploit framework from their website any help would be nice! Quote Link to comment Share on other sites More sharing options...
digininja Posted November 28, 2018 Share Posted November 28, 2018 It's all changed since I last used it but from those errors it looks like you haven't created the msf user in postgresql or when you did you set a different password to what it is expecting. I've no idea how to set it, Google should tell you though. Quote Link to comment Share on other sites More sharing options...
deadsecdefalt Posted November 28, 2018 Author Share Posted November 28, 2018 i have the database initiated and it says it created the msf and msf test users? sorry i dont really know how id do this, im new. Quote Link to comment Share on other sites More sharing options...
digininja Posted November 28, 2018 Share Posted November 28, 2018 A perfect first learning opportunity then. Find out how to connect to postgresql from the command line and check the user exists and is working, if not, create a new one and see what happens. Testing is all about learning, don't turn down this chance for some for free. 1 Quote Link to comment Share on other sites More sharing options...
deadsecdefalt Posted November 28, 2018 Author Share Posted November 28, 2018 So the users are there but im not sure im understanding this correctly. i try to connect the database from the msfconsole but its saying "Error while running command db_connect: FATAL: role "root" does not exist" I really dont understand what to do here and i cant find answers for my problem anywhere else online. Quote Link to comment Share on other sites More sharing options...
deadsecdefalt Posted November 28, 2018 Author Share Posted November 28, 2018 Okay, so now for some reason its connected to the msf console but i still cant use armitage. "password authentication failed for user "msf"" Quote Link to comment Share on other sites More sharing options...
digininja Posted November 28, 2018 Share Posted November 28, 2018 Try the postgresql client, not the metasploit console. Quote Link to comment Share on other sites More sharing options...
deadsecdefalt Posted November 29, 2018 Author Share Posted November 29, 2018 So ive been into the postgresql client and everything is setup how it should be, could you kindly help me instead of giving me hints because i dont know what is broken, that is why im here. Quote Link to comment Share on other sites More sharing options...
digininja Posted November 29, 2018 Share Posted November 29, 2018 I've got no idea what is broken either. The hints I'm giving you are how I would debug it. Make sure the database user is in place, check the creds are as expected, watch logs to see connection failures, get each individual bit working on its own then in combination. Quote Link to comment Share on other sites More sharing options...
Bigbiz Posted November 29, 2018 Share Posted November 29, 2018 If you changed the console passwird maybe by accident User msf Password test 1 Quote Link to comment Share on other sites More sharing options...
digininja Posted November 29, 2018 Share Posted November 29, 2018 This is why I was asking about using the command line to check that the credentials supplied were able to be used to connect to the database. Quote Link to comment Share on other sites More sharing options...
theUNK0WN Posted December 8, 2018 Share Posted December 8, 2018 The login credentials should match this image: If you have something different, that would *normally* be the cause of a failed authentication. What does your database.yml display? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.