Jump to content
deadsecdefalt

Metasploit / postgresql / armitage problems

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

The login credentials should match this image:

step1.png

If you have something different, that would *normally* be the cause of a failed authentication.

What does your database.yml display?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...