Guspaz wrote:
It should be noted that these suggestions about how to lock down WordPress are for your new system. Your system has been compromised and can no longer be trusted. There is no "cleaning" of the system to be done, it needs to be rebuilt from known good backups.
sami1255,
Guspaz is correct. Your server is dead in the water ...
but ... before you migrate your database(s), settings, files, etc over to a new server you need to make sure that you are
not bringing over your infection.
- you should not copy your WP installs to the new server; install everything fresh.
- you should not copy over any files that have executable extensions or permissions (no .php, no .pl, no .sh, etc).
- any HTML files you bring over cannot include any PHP code in them, not even PHP variables.
- you should not copy over any cache files.
You're going to need to make sure your database entries are clean too. It's possible that someone has infected your DB and when a certain page on your site is displayed the content from the DB is executed and causes the infection.
Does a request for a certain page - possibly a page that doesn't get much traffic - precede the return of the infection?
Is the infected content the same every time? Is it always in the same files?
MSJ