sensepost / autoDANE

Auto Domain Admin and Network Exploitation.
295 stars 71 forks source link

Cannot connect to metasploit #8

Open Kaicastledine opened 7 years ago

Kaicastledine commented 7 years ago

When metasploit is called I get the following error,

starting metasploit ...
timeout.will try again
there was an error starting metasploit console
[!] could not connect

This then loops round, caused by selecting the depth of test to include Exploitation.

Kaicastledine commented 7 years ago

Right it seems to be related to the configuration of the workerthread file https://github.com/sensepost/autoDANE/blob/master/worker/workerthread.py

Tripex48 commented 6 years ago

There is a variety of reasons why metasploit might timeout.

First ensure that the following packages are installed:

apt-get install postgresql libpq-dev git-core

gem install pg

git clone git://github.com/SpiderLabs/msfrpc.git msfrpc

cd msfrpc/python-msfrpc

python setup.py install

Hereafter, you would need to start both the postgresql and metasploit services:

service postgresql start

msfconsole

Within msfconsole, you would need to setup the MSFRPC server: msf -> db_connect autodane:OHZdz7CW8Lv4PCa@127.0.0.1/autodane msgrpc Pass=abc123