Title: Just got hacked&#8230;..help
Last modified: August 19, 2016

---

# Just got hacked…..help

 *  [locash](https://wordpress.org/support/users/locash/)
 * (@locash)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/just-got-hackedhelp/)
 * Ok. so i got hacked…my site (when i went to it) started redirecting you somewhere
   else and who knows what info it was grabbing. I reinstalled my index.php file
   and it seems i can get onto my site and view ….but i went to /wp-admin/ to log
   in and it still starts fwding me…..
    -what files should i replace? -should i 
   do a clean install? what about my old posts? -how to i stop this from happening?
   thanks!!!!!!

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

 *  [bplank](https://wordpress.org/support/users/bplank/)
 * (@bplank)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/just-got-hackedhelp/#post-848110)
 * You are victim to SQL injection. You need to export your posts as an XML file,
   then delete the SQL database and to a completely new install. Then you need to
   install WP 2.6.1. The SQL injection issue was 2.5 specific, but not in 2.6+
 *  Thread Starter [locash](https://wordpress.org/support/users/locash/)
 * (@locash)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/just-got-hackedhelp/#post-848328)
 * How do I export my posts as an xml file? and what if i cant even get into my 
   admin panel?

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

The topic ‘Just got hacked…..help’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [locash](https://wordpress.org/support/users/locash/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/just-got-hackedhelp/#post-848328)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
