1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

For those of you that where affected by the Turkish hack. Here's how to fix it.

Discussion in 'Making Money' started by zero-day, Dec 13, 2011.

  1. zero-day

    zero-day Regular Member

    Joined:
    Aug 25, 2011
    Messages:
    349
    Likes Received:
    344
    Occupation:
    Coder
    Location:
    My Office.
    Home Page:
    For those that where affected by the hack by the Turkish group, here's how to fix it.

    Use your favored FTP client, login and goto your wordpress home directory.
    Delete the index.php file that's there and nothing more.

    From there, copy and paste the following into notepad or your favorite text editor or website document editor such as notepad(text editor) or DreamWeaver(website document editor).
    Code:
    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    ?>
    
    Or if you don't trust the above code, you can goto http://wordpress.org and download the wordpress package from there, unzip the .zip/.rar file that you have just downloaded.

    From there you will see a "wordpress" folder or "wordpress-3.3" folder depending on how you unzipped the file.

    From there just take the index.php file and upload it to your wordpress website's home/primary directory.

    What that is, if you goto http://mysite.com/WP the home/primary directory would be the "WP" folder.

    If any of you need help, just contact me and I will help anyone out that need's it.


    For my websites, I have checked every file on my website's and there was nothing else affected or any technical injections or anything, all that was done is the index.php file was deleted and replaced.
     
    • Thanks Thanks x 1
  2. T2tkid

    T2tkid Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 13, 2010
    Messages:
    3,193
    Likes Received:
    1,459
    Thanks for this, i have bookmarked this thread.
    I lost one of my site which was earning between $5 to $20 from adsense. It was hacked and got blocked for racist.
     
    • Thanks Thanks x 1