Metasploit: Not connecting to database error fix 2019

preview_player
Показать описание
How to fix Metasploit and armitage failed to connect to the database error.

Commands used in this video:
port = 5432 # (change requires restart)

If you dont see 5432 as the port, just change it. Mine was set to 5433, if yours is 5433 you can just run this sed line to update:

After that, restart the postgresql service and re-initialize the metasploit db
service postgresql restart
Рекомендации по теме
Комментарии
Автор

Thank you!!! My fresh install of Kali was giving me this error when I was trying to import a DB. You seriously saved me

rj
Автор

Worked perfectly! Thank you so much! I will definitely check your other videos out too :)

Capitol
Автор

hey i'm wondering if you could help me out. My armitage icon won't work. When I click it, nothing happens. I didn't do anything since I updated Kali a couple weeks ago. It seems that after I updated kali, that's when the armitage icon didn't work. i found a work around, by going into
/etc/init.d/postgresql start, then bash armitage. That seems to work, but I don't want to keep doing this. I just want the icon to work. Would you know how to fix this?

haroldgar
Автор

thanks man, finally got metasploit to work. I wasn't able to get output for the 'ss - lntp | grep post' command but I found that this command was not needed.

buded
Автор

This literally helped me. Wow. Thanks man!

EzequielOsorio
Автор

Thank you very much brother. I struggled seriously with this problem. I subscribe directly

guychelprinsly
Автор

they are both 5432 for me, but armitage is still not working...

dastupidguy
Автор

I have spent over 10 search how i fix this thank you for idea <3

AhmedAhmed-omzt
Автор

my webcams are not opening or my record_mic why? please help

jamiemorales
Автор

thank you so much you saved my head from stress

powefulminds
Автор

When I run ss - lntp | grep post
Nothing happens at all, I'm pulling my hair out trying to get this to work so armitage works again, any help?

DanSmith
Автор

Hi! do you know why when I try to run an exploit on parrot os the next issue appears?
Exploit failed: An exploitation error occurred
I've tried everything, disable my firewall on my VM, and nothing, hahaha hope you can help me.
:´)

eleammorales
Автор

awesome stuff bro, what a hero keep up the work - subscribing for more!

matthewandrews
Автор

i did all man and still i get the fowllow:
db_status
[*] postgresql selected, no connection
ps. sed -i 's/\(port = \)5433/\15432/'
need to be changed from /11/ to /12/ in the previous line.

torpedoeg
Автор

Great Video... Thanks mate... You are awesome. Still a doubt. Why do i need to connect the database again after reboot? can it be done permanently?

kalinaath
Автор

still my terminal showing bash msfcosole command not found

mylinux
Автор

could not locate Gemfile or .bundle/ directory . Plus also says warning : no database support: FTAL: paswsord authentication failed for user "msf". Unquote. Followed all u said. Nothing. crap

robertellis
Автор

soooo many of these commands werent even a thing for me

karathyy
Автор

The video is too blurry in spots to see what you are typing and you are not always speaking what you are typing. I will have to find somewhere else to fix this.

paulbrickner
Автор

just type as normal user in an terminal msfdb reinit and follow the instructions

talakael