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