Title: How Do I Fix A Code Injection Hack?
Last modified: July 5, 2017

---

# How Do I Fix A Code Injection Hack?

 *  [hamzidosh](https://wordpress.org/support/users/hamzidosh/)
 * (@hamzidosh)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/how-do-i-fix-a-code-injection-hack/)
 * Please help me.
 * My wordpress blog has been hacked, search engine traffic is being redirected 
   to different sites.
 * I scanned the site using wordfence and found that there is an encrypted code 
   on the theme file, I have changed the theme and deleted it. Now I find that there’s
   been several codes in different parts of the blog.
 * Sururi shows that core wp files have been modified.
 * What do I do?
 * I am on a budget and I am comfortable doing it myself.

Viewing 12 replies - 1 through 12 (of 12 total)

 *  [Joshua Clinton](https://wordpress.org/support/users/hostsonny/)
 * (@hostsonny)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/how-do-i-fix-a-code-injection-hack/#post-9291024)
 * Assuming your database isn’t affected. I’d export the database, do a clean WordPress
   install, reinstall all your plugins and theme(s), and import the database again.
 *  [luckychingi](https://wordpress.org/support/users/luckychingi/)
 * (@luckychingi)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/how-do-i-fix-a-code-injection-hack/#post-9291090)
 * My 2 cents.
 * Once you get your site working, update WordPress Core, themes & plugins and install
   Wordfence – its FREE 🙂
 *  Thread Starter [hamzidosh](https://wordpress.org/support/users/hamzidosh/)
 * (@hamzidosh)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/how-do-i-fix-a-code-injection-hack/#post-9291099)
 * 1. But there are over 3000 posts there.
 * 2. How do I know if the database isn’t affected?
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [8 years, 10 months ago](https://wordpress.org/support/topic/how-do-i-fix-a-code-injection-hack/#post-9291111)
 * This is the stock answer for cleaning up a compromised installation. In short,
   it takes a long time to clean a hacked site. If the cleanup is easy then chances
   are you’re still hacked.
 * You need to start working your way through these resources:
    - [https://codex.wordpress.org/FAQ_My_site_was_hacked](https://codex.wordpress.org/FAQ_My_site_was_hacked)
    - [https://wordpress.org/support/topic/268083#post-1065779](https://wordpress.org/support/topic/268083#post-1065779)
    - [http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/](http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/)
    - [http://ottopress.com/2009/hacked-wordpress-backdoors/](http://ottopress.com/2009/hacked-wordpress-backdoors/)
 * Additional Resources:
    - [http://sitecheck.sucuri.net/scanner/](http://sitecheck.sucuri.net/scanner/)
    - [http://www.unmaskparasites.com/](http://www.unmaskparasites.com/)
    - [https://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.html](https://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.html)
 *  Thread Starter [hamzidosh](https://wordpress.org/support/users/hamzidosh/)
 * (@hamzidosh)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/how-do-i-fix-a-code-injection-hack/#post-9291114)
 * I have wordfence installed already
 *  [luckychingi](https://wordpress.org/support/users/luckychingi/)
 * (@luckychingi)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/how-do-i-fix-a-code-injection-hack/#post-9291145)
 * If After restoration, wordfence reports that core files have been modified, then
   the probability of the database being compromised is high.
 * Work your way through the list of sites suggested by Andrew.
 *  [angelwp](https://wordpress.org/support/users/angelwp/)
 * (@angelwp)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/how-do-i-fix-a-code-injection-hack/#post-9291204)
 * Hello, got the same problem, clean all the files and keep and eye on cpu usage
   and procceses, you can see there scripts that Wordfence CAN´T find,
 * the big question is, how can we clean the database?, and… how can i know if it
   is infected????? :/
 * already done ALL the guides and still getting code injected, dont know if anyone
   can make a full clean without spent a cent in premium security packages
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [8 years, 10 months ago](https://wordpress.org/support/topic/how-do-i-fix-a-code-injection-hack/#post-9291263)
 * > dont know if anyone can make a full clean without spent a cent in premium security
   > packages
 * [@angelwp](https://wordpress.org/support/users/angelwp/), No we cannot resolve
   the hacked site for you. If you cannot resolve this yourself then you should 
   hire a reputable company to do it for you.
 *  [angelwp](https://wordpress.org/support/users/angelwp/)
 * (@angelwp)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/how-do-i-fix-a-code-injection-hack/#post-9292192)
 * Eeeeeeehhhh…. i guess here is a little misunderstood, i dont want to get my site
   clean for “free”, i want to know HOW to do it, share experiencies, etc, doesnt
   is this forum to???
 * i say that with the idea if someone has acomplishe a full clean in a server by
   him or herself, thats all…
 * only want to know how to correctly check my databases, or where i can ask this?…
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [8 years, 10 months ago](https://wordpress.org/support/topic/how-do-i-fix-a-code-injection-hack/#post-9294718)
 * You need to read the resources that I’ve linked. It explains that even if you
   knew what to look for and removed that from the database, you would still be 
   hacked. That would only remove the symptom of the hack.
 * Resolving a hacked website is difficult and you can spend a lot of time doing
   it yourself or pay someone to do it for you – either way they’re both expensive
   options.
 *  Thread Starter [hamzidosh](https://wordpress.org/support/users/hamzidosh/)
 * (@hamzidosh)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/how-do-i-fix-a-code-injection-hack/#post-9323962)
 * Yaay!
 * I’m just checking in to let you guys know that the issue has been fixed.
 * After going through so much trouble and not making any significant headway.
 * I went online and found out about a guy called Jim.
 * We had a conversation and in a few minutes we struck a deal.
 * What’s so amazing is that you can reach him directly on phone, getting him to
   help me was so easy.
 * And not only did the search engines mark my site as safe, the search engine traffic
   stopped redirecting to different sources which means increased traffic for me.
 * Just Google “Jim The hack repair guy” or go to hackrepair.com to engage him.
 * Thank you all for your input guys.
 *  [hackrepair](https://wordpress.org/support/users/hackrepair/)
 * (@hackrepair)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/how-do-i-fix-a-code-injection-hack/#post-9324115)
 * Wow. That was very nice of you to say, my friend. <blushing>
    🙂

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘How Do I Fix A Code Injection Hack?’ is closed to new replies.

## Tags

 * [hacked wordpress](https://wordpress.org/support/topic-tag/hacked-wordpress/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 12 replies
 * 6 participants
 * Last reply from: [hackrepair](https://wordpress.org/support/users/hackrepair/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/how-do-i-fix-a-code-injection-hack/#post-9324115)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
