#!/bin/bash
# root-side read-only harvest
echo "=== whoami: $(id)"
echo "=== home dirs"
ls -la /home
echo "=== wp-config / configuration.php / .env under /home (excl ara)"
find /home -maxdepth 4 \( -name 'wp-config.php' -o -name 'configuration.php' -o -name '.env' -o -name 'settings.php' -o -name 'config.inc.php' \) -not -path '/home/ara/*' 2>/dev/null
echo "=== cpanel users"
for u in /var/cpanel/users/*; do echo "-- $u"; grep -E '^(USER|DNS|MAIN|DOMAIN|OWNER)' "$u" 2>/dev/null; done
