How To Unhack Your WordPress Website

  1. Make a backup of your database
    1. Open up and make note of the DB_NAME, DB_USER, DB_PASSWORD, and DB_HOST
    2. Download Adminer
    3. Open up cPanel's file explorer or your favorite ftp program
    4. Upload the adminer file to
    5. Visit that url:
    6. Enter your credentials
    7. Click on the Export link on the left, the Save radio button, and then the Export button
    8. Save a copy of the database to your computer just in case!
  2. In the file explorer or ftp program move to
  3. Create a new directory called
  4. Unzip a fresh installation of WordPress there:
  6. Copy wp-config-sample.php to wp-config.php and populate the four values as was done above: DB_NAME, DB_USER, DB_PASSWORD, and DB_HOST
  7. Now reinstall each plugin and theme from /wp-admin/

This way you know for sure all of the files are clean again. It's worth it to go to the trouble.