KaLi Metasploit connecting the PostgreSQL database

Source: Internet
Author: User

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

Related Article

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.