Metasploit-framework: msf ==>database.yml 问题

Created on 13 Mar 2018  ·  7Comments  ·  Source: rapid7/metasploit-framework

Steps to reproduce

How'd you do it?

  1. ...
  2. ...

This section should also tell us any relevant information about the
environment; for example, if an exploit that used to work is failing,
tell us the victim operating system and service versions.

Expected behavior

What should happen?

Current behavior

What happens instead?

You might also want to check the last ~1k lines of
/opt/metasploit/apps/pro/engine/config/logs/framework.log or
~/.msf4/logs/framework.log for relevant stack traces

System stuff

Metasploit version

Get this with the version command in msfconsole (or git log -1 --pretty=oneline for a source install).

I installed Metasploit with:

  • [ ] Kali package via apt
  • [ ] Omnibus installer (nightly)
  • [ ] Commercial/Community installer (from http://www.rapid7.com/products/metasploit/download.jsp)
  • [ ] Source install (please specify ruby version)

OS

What OS are you running Metasploit on?

image
这样连接可以,
但是
image
改完这个不生效

Most helpful comment

You need to replace development with production
用production替换development
development -> production
e.g

production:
 adapter: postgresql
 database: msf
 username: msf
 password: lololol
 host: 127.0.0.1
 port: 5432
 pool: 75
 timeout: 5

All 7 comments

@rockmelodies: You should create database.yml in the .msf4 folder of your home directory (~/.msf4/database.yml)

@rockmelodies:你应该在主目录的.msf4文件夹中创建database.yml

~/.msf4/database.yml

就按照上面的要求配置了出现了这个问题
Uploading image.png…
这是我的配置
Uploading image.png…
是不是我的配置有问题

就按照上面的要求配置了出现了这个问题
image

这是我的配置
image

是不是我的配置有问题

Let me translate these words for people who could help.
Sorry, this friend maybe not familiar with the OpenSource community, he is an end-user maybe...

就按照上面的要求配置了出现了这个问题
I followed the rules above to configure my Metasploit, but an error occurs
image
这是我的配置
this is my config file:
image
是不是我的配置有问题
Is there anyone who could tell me whether my config file is wrong? and thank you guys sincerely!

You need to replace development with production
用production替换development
development -> production
e.g

production:
 adapter: postgresql
 database: msf
 username: msf
 password: lololol
 host: 127.0.0.1
 port: 5432
 pool: 75
 timeout: 5

thinks! 非常感谢!问题解决了

Thank you very much. The problem has been solved

Was this page helpful?
0 / 5 - 0 ratings