Thanks, I will try tripwire. I heard it's quite resource demanding though.
The intrusion was made through WordPress and all files were created by www-data user, so it cam from php and I was hoping that I could find all those files comparing them with backups.
I created this kind of script yesterday, not sure how heavy is that for the system, but it shows all the files that were changed:
Code:
#!/bin/bash
inotifywait --exclude "(logs\/)|(configCache.php)|(cache_stats.php)|(sitemap.xml)" -e modify,attrib,delete,create -m -r /home/ --timefmt %d-%m-%Y-%H:%M:%S --format '%T: %e %w%f' >> /filechangelog/$(date +"%Y%m%d")_filechangelog.txt