Results 1 to 2 of 2

Thread: Metasploit and Postgresql on Kali

  1. #1
    Join Date
    2014-Jan
    Posts
    3

    Metasploit and Postgresql on Kali

    Discovered Solution:
    Modify the /etc/postgresql/9.1/main/postgresql.conf - So the port is set to 5432
    ################################################## #############

    Hello Forum,
    I'm trying to figure out why postgresql is running on port 5433 instead of 5432.
    It is my understanding that this setting is done in:/opt/metasploit/apps/pro/ui/config/database.yml; which reads as follows:
    Code:
    adapter: "postgresql"
    database: "databasename"
    username: "username"
    password: "password"
    port: 5432
    host: "localhost"
    pool: 256
    timeout: 5
    for both "development" and "production"
    But when I run "ss -ant" it shows the port being used is 5433 instead of 5432 and when I boot up metasploit it informs me that it failed to connect to the database. While I am aware that I could just reinstall the software, I would rather figure out how to remedy this issue in order to learn from it.

    I appreciate any advice you can offer, Thank you.
    Last edited by JHolister; 2014-01-28 at 22:12. Reason: Discovered Solution

  2. #2
    Join Date
    2014-Feb
    Posts
    4
    Dont forget to restart service postgresql when you change the file /etc/postgresql/9.1/main/postgresql.conf

    For me it's clean.

Similar Threads

  1. Postgresql and Metasploit
    By Noob123 in forum NetHunter General Questions
    Replies: 9
    Last Post: 2015-08-23, 14:17
  2. metasploit and postgresql help
    By Lordx19 in forum TroubleShooting Archive
    Replies: 18
    Last Post: 2014-03-04, 14:00
  3. [Help] Password Authentication Failed - Postgresql, Metasploit, and Kali
    By JHolister in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2014-01-28, 22:38
  4. kali + postgresql + metasploit (ARM)
    By zitstif in forum ARM Archive
    Replies: 2
    Last Post: 2013-06-25, 10:04

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •