I have a wordpress website that was hacked.
The hacker inserted hidden HTML in my posts (wp_posts table) using this HTML pattern:
<div style="overflow:hidden;height:1px;">
<p>Text here, always different</p>
<p>More text....</p>
</div>
Is it possible to locate in the DB everything that starts with
<div style="overflow:hidden;height:1px;">
and ends in the next
</div>
and then remove these entries from the DB?
Note: I have access to phpMyAdmin.
I really appreciate any help you can provide.
2
Answers
You could start by selecting every column that has that div in it
If that brings up everything
I assume you meant remove the offending code block from each post, and not
Important
Do a thorough check on the results to make sure you are happy with the transformation from
post_content
tocleaned
. If all looks good, take a backup of wp_posts, and do the update –