Move WP blogs/data from broken/hacked install to new WP install - How to? (3 posts)

  1. scapegoat
    Posted 3 years ago #

    Hi everyone,

    I was unfortunate enough to have my website hacked. malicious software was injected into functions.php and index.php. I discarded those files from the server (though have a backup....the hack broke the page anyways).

    However I have started with a fresh wordpress installation, and wish to move my old data to there. However of course I don't have access to the admin panel in the old site because WP was broken. I don't care about saving the theme, but what files do I need to transfer to recover the blog posts in the new installation? Is there a good way to do this? Or do you have alternative recommendations?

    I did already connect the old database to the new wordpress install.

    Any help would be greatly appreciated. You guys rock!

  2. WPyogi
    Forum Moderator
    Posted 3 years ago #

  3. scapegoat
    Posted 3 years ago #

    Thanks for the resources!! I did take most of those steps actually. I called 1and1 and they scanned and quarantined the issue files, and told me which files had malicious code, the functions.php and index.php.

    I checked my personal internet security log and found that withing 24 hours of my site going down, a trojan was neutralized on my computer.

    I also started a fresh wordpress install, rerouted the database, checked the db for unusual content and didn't find any...nonetheless, I found this just now in the .htaccess file:

    AddType x-mapp-php5 .php
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress

    Is this normal??

    Also, more info: the hackers exploited a old timthumbs vulnerability for an outdated theme I was using. I ditched that theme in my new installation. Timthumb vulnerability
    I also still can't get the new installation to work with the database.

Topic Closed

This topic has been closed to new replies.

About this Topic