Workaround for unable to connect to database after updating Metasploit in Kali and backtrack

Source: Internet
Author: User

Many friends who use Kali and BT have been unable to connect to PostgreSQL after updating Metasploit, and there are not many domestic related data. Connecting the database in Metasploit can greatly improve our efficiency, such as search MS, which is much slower than connecting to DB in the default slow lookup. Let's talk about how to solve this today and provide 2 ways.

First, you need to start the following 2 services before you start running Msfconsle.

650) this.width=650; "title=" m0.jpg "style=" Float:none "src=" http://s3.51cto.com/wyfs02/M00/5A/2E/ Wkiom1t4mzlqztmsaaebhv57v9s551.jpg "alt=" Wkiom1t4mzlqztmsaaebhv57v9s551.jpg "/>

Then, running Msfconsole at the terminal, and then MSF > db_status View the current database connection status, the success will prompt [*] PostgreSQL connected to MSF3. Otherwise, some error prompts appear.

650) this.width=650; "title=" m1.jpg "style=" Float:none "src=" http://s3.51cto.com/wyfs02/M01/5A/2A/ Wkiol1t4neqxopltaaoexecfg00672.jpg "alt=" Wkiol1t4neqxopltaaoexecfg00672.jpg "/>

The first workaround is relatively straightforward, as shown in.

Msf>db_connect-y/opt/metasploit/apps/pro/ui/config/database.yml

650) this.width=650; "title=" m2.jpg "style=" Float:none "src=" http://s3.51cto.com/wyfs02/M01/5A/2E/ Wkiom1t4mzwacsqkaaht6kzjoro565.jpg "alt=" Wkiom1t4mzwacsqkaaht6kzjoro565.jpg "/>

The second method first looks at PostgreSQL's account password.

#cat/opt/metasploit/apps/pro/ui/config/database.yml

650) this.width=650; "title=" m3.jpg "style=" Float:none "src=" http://s3.51cto.com/wyfs02/M02/5A/2A/ Wkiol1t4neywpnmlaahvksnqlwi139.jpg "alt=" Wkiol1t4neywpnmlaahvksnqlwi139.jpg "/>

Then run the following command after the Metasploit is started.

Msf>db_connect MSF3: Your PostgreSQL's [email protected]:5432/msf3

650) this.width=650; "title=" m4.jpg "style=" Float:none "src=" http://s3.51cto.com/wyfs02/M02/5A/2E/ Wkiom1t4mzez4phmaaf3cchde_e019.jpg "alt=" Wkiom1t4mzez4phmaaf3cchde_e019.jpg "/>

OK, problem solved, like friends can share the article ~650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0037.gif "alt=" J_0037.gif "/>

This article is from the "Nocturnal Person" blog, so be sure to keep this source http://zerosecurity.blog.51cto.com/9913090/1617728

Workaround for unable to connect to database after updating Metasploit in Kali and backtrack

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.