#!/bin/bash
set -uo pipefail
SM=/home/rafa/joomla-migration/mirror-antiguo/smoke/raw
echo "=== titulos capturados (10) ==="
find "$SM" -name '*.html' | head -10 | while read -r f; do
t=$(grep -o '
[^<]*' "$f" | head -1 | sed 's/<[^>]*>//g')
printf '%-70s %s\n' "$(basename "$f")" "$t"
done
echo
echo "=== paginas sospechosas (challenge/error) ==="
grep -rli 'Attention Required\|Just a moment\|Not Acceptable\|mod_security\|Error 500' "$SM" | wc -l
echo "=== ficheros con PHP embebido ==="
grep -rl '