postgresql-fix

Metasploit_postgresql_database_connection_fix

Stars
13

Postgresql-fix v1.4 - msfdb connection bugfix

Version release: v1.4 (Stable)
Author: pedro ubuntu [ r00t-3xp10it ]
CodeName: Metasploit_postgresql_database_connection_fix
Distros Supported : Linux Ubuntu, Kali, Mint, Parrot OS
Suspicious-Shell-Activity (SSA) RedTeam develop @2017

Description:

This tool will try to quickly fix the metasploit postgresql connection bug,
present in postgresql.conf install versions from 9.1 to 9.7 (Incorrect port settings).
'Just run it before using metasploit to check settings OR fix msfdb connection errors'
This module will seach in postgresql.conf for port settings, and change it to the
correct port configuration needed by msfdb (5432), it starts postgresql service and
check's if the LocalHost its also connected to the correct port (5432), For last it
check's if msfdb its connected to postgresql, if not, It will then rebuild the msfdb
(database.yml) exit script execution and leave the postgresql service running.

This module allows users to config a diferent port (5432) to be used, and a diferent
postgresql installation path (/etc/postgresql) Users just need to edit the script
and modify the values 'PoRt' and 'RoOt' in 'Tool variable declarations' funtion.

Possible errors encounter in configurations

Incorrect postgresql port configuration setting Postgresql-fix v1.4 Postgresql selected, no connection .. Postgresql-fix v1.4

Improbable script execution errors

Is your postgresql.conf installed in a diferent path? Postgresql-fix v1.4

Dependencies/Limitations:

Zenity, Metasploit, Postgresql, Sed(bash)

WARNING: Only Linux distros are supported
WARNING: Only Postgresql versions from 9.1 to 9.7
WARNING: This toll will NOT fix permanently the issue.
'Provides a fast way to check/fix the msfdb connection, before using msf'

Download/Install/Config:

1 - Download framework from github
     git clone https://github.com/r00t-3xp10it/postgresql-fix.git

2 - Set files execution permitions
     cd msfdb-fix
     sudo chmod +x *.sh

3 - Run main tool
     sudo ./postgresql-fix.sh

Video tutorials:

Postgresql-fix [ Official release - Main funtions ]: https://www.youtube.com/watch?v=EGOgzm7fpEk

Special thanks:

Suspicious-Shell-Activity (SSA) RedTeam develop @2017

Badges
Extracted from project README
Version Stage Build