armitage icon indicating copy to clipboard operation
armitage copied to clipboard

armitage connection to db

Open KaliMalibu opened this issue 6 years ago • 7 comments

Hi,

I am running Kali 2018 and Metasploit 4.16.64. My problem is that, Armitage wont connect to db.

I use defoult settings:

host 127.0.0.1 port 55553 user msf pass test

error is that it can not find database.yml file

I try to type msfdb init

ang getting metasploit running on kali linux as root using system database A database appears to be already configured, skipping initialization

I am running armitage as root.

I also try to change port to 5432 and 5433 with no success.

Metasplit is working fine on that box.

What else should I try?

KaliMalibu avatar Jun 25 '18 00:06 KaliMalibu

i have the same problem

Abdelfattaah avatar Jun 26 '18 07:06 Abdelfattaah

yeah it looks like an awesome tool i get the same message and I can't figure out how to ge MSF_DATABASE_CONFIG to $PATH i think is what tt is..

AlphaMufasaOmega avatar Sep 07 '18 10:09 AlphaMufasaOmega

where is MSF_DATABASE_CONFIG?

AlphaMufasaOmega avatar Sep 25 '18 08:09 AlphaMufasaOmega

you should try this from beginning ;

Start the PostgreSQL Database

systemctl start postgresql

Initialize the Metasploit Framework Database

msfdb init

Start Armitage

armitage

salemhijazi avatar Jan 11 '19 01:01 salemhijazi

you should try this from beginning ;

Start the PostgreSQL Database

systemctl start postgresql

Initialize the Metasploit Framework Database

msfdb init

Start Armitage

armitage

That doesnt work for me i still get the same errors

DevKass06 avatar Jan 07 '22 12:01 DevKass06

pls help i cant get it fixed

DevKass06 avatar Jan 07 '22 14:01 DevKass06

Hello, Try guys to:

[A] Run Postgresql for metasploit:

sudo service postgresql start
service postgresql status

if running - ok, if not try again

[B] Initialize MSF db:

sudo msfdb init
msfconsole -q -x "db_status"

[C] Run MSFRPCD (metasploit RPC daemon):

sudo msfrpcd -P test

Important things:

  • the password might be "test" or any other shared password specified by you to remotely connect to msfrpc deamon :-)
  • watch the output - it should give you basic information about connection (0.0.0.0:55553) by default etc

[D] Run Armitage

armitage

And then provide shared password and your username 👍 follow steps:

graph TD;
A-->B;
B-->C;

Should be working!

swiru95 avatar Mar 27 '22 18:03 swiru95

worked!

Hello, Try guys to:

[A] Run Postgresql for metasploit:

sudo service postgresql start
service postgresql status

if running - ok, if not try again

[B] Initialize MSF db:

sudo msfdb init
msfconsole -q -x "db_status"

[C] Run MSFRPCD (metasploit RPC daemon):

sudo msfrpcd -P test

Important things:

  • the password might be "test" or any other shared password specified by you to remotely connect to msfrpc deamon :-)
  • watch the output - it should give you basic information about connection (0.0.0.0:55553) by default etc

[D] Run Armitage

armitage

And then provide shared password and your username +1 follow steps:

Should be working!

WORKED! But UI doesn't showing up :|

Otojon avatar Sep 16 '22 05:09 Otojon