Global Linux Knowledge Base…
WordPress: Recovering from permalinks hack
We have seen quite a few blogs hacked because WordPress was NOT updated on a timely manner. If you are seeing strange links in URL with eval, that means your blog is hacked.
Use phpmyadmin or shell mysql command to replace some bad stuff:
# mysql
mysql> update wp_options set option_value=” where option_name=’_transient_rewrite_rules’;
mysql> select * from wp_options where option_name=’permalink_structure’;
Check the above SQL select and see if you have any strange functions or code in wp_options field. Replace as required, for example:
mysql> update wp_options set option_value=’/%year%/%monthnum%/%postname%/’ where option_name=’permalink_structure’;
| Print article | This entry was posted by Dhaval Soni on August 12, 2011 at 2:43 AM, and is filed under CentOS, Fedora, Linux OS, Red Hat, SUSE Linux, Utilities. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |