Jump to content

Metasploit / postgresql / armitage problems


deadsecdefalt

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!

Link to comment
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.

Link to comment
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
Link to comment
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.

Link to comment
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.

Link to comment
Share on other sites

  • 2 weeks later...

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...