Monitoring file changes and creation of new files.
My wordpress site is sending spams. I've been logging which script is sending emails and I keep deleting the script. But, after a day or two another file is being created. I need to find the script or file which is creating those files.
Is there any monitoring command or tool which I can setup to watch my wordpress directory to see which file is creating those scripts?
Your help is much appreciated.