KaLi Connecting the PostgreSQL database
To see if PostgreSQL is up and not started, start with the service PostgreSQL Start command. After starting to see if the boot was successful, the port is 5432:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4C/7F/wKioL1Q-kgaSWeZXAAC1T1E06QE255.jpg "title=" 34.png "alt=" Wkiol1q-kgaswezxaac1t1e06qe255.jpg "/>
After starting Metasploit, check the connection status of PostgreSQL, the command is: Db_status, as shown below, prove that there is no connection.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4C/7E/wKiom1Q-lBDz-Z_SAAAwntxn_1I224.jpg "title=" 56.png "alt=" Wkiom1q-lbdz-z_saaawntxn_1i224.jpg "/>
To view PostgreSQL's account password, address is: cat/opt/metasploit/apps/pro/ui/config/database.yml
:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4C/7E/wKiom1Q-kqvx4GN9AAFYhWGH7Ok793.jpg "title=" 12.png "alt=" Wkiom1q-kqvx4gn9aafyhwgh7ok793.jpg "/>
Connect to the database using the following method:
MSF > Db_connect msf3:[email protected]:5432/msf3
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4C/7F/wKioL1Q-lMXi_lgLAABsCdYVumQ652.jpg "title=" 67.png "alt=" Wkiol1q-lmxi_lglaabscdyvumq652.jpg "/>
After successful execution, view the connection status of the database, connected:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4C/7F/wKioL1Q-lQPDCaGBAAAmBF3YF9Q418.jpg "title=" 78.png "alt=" Wkiol1q-lqpdcagbaaambf3yf9q418.jpg "/>
----------over--------
This article is from the "mask_x blog" blog, please be sure to keep this source http://zhpfbk.blog.51cto.com/4757027/1564598
KaLi Metasploit connecting the PostgreSQL database