echo '== postgres =='
ps aux 2>/dev/null | grep -iE 'postgres|pgsql' | grep -v grep | head
ls /var/lib/pgsql 2>/dev/null; ls /etc/passwd | head
grep -E 'pisp|postgres' /etc/passwd 2>/dev/null
echo '== mysql root no-pass =='
mysql -uroot -e "SELECT 1;" 2>&1 | head -2
echo '== secure_file_priv =='
mysql -uglarkru -p'7Q4j4Y4qQ6c4B4h8P1n3N9p8' -e "SELECT @@global.secure_file_priv, @@version;" 2>&1 | head -3
echo '== FILE priv check =='
mysql -uglarkru -p'7Q4j4Y4qQ6c4B4h8P1n3N9p8' -e "SELECT COUNT(*) FROM information_schema.user_privileges WHERE GRANTEE LIKE '%glarkru%' AND PRIVILEGE_TYPE IN ('FILE','SUPER');" 2>&1 | head -3
echo '== ispmgr readable bits =='
ls -la /usr/local/mgr5/var 2>&1 | head -3
find /usr/local/mgr5 -maxdepth 3 -user glarkru 2>/dev/null | head
find /usr/local/mgr5 -group mgrsecure 2>/dev/null | head
echo '== pisp psql test =='
psql -U pisp -h localhost -c "select 1" 2>&1 | head -2
