<?
/*
Plugin Name: HTMLTaintCheck
Plugin URI: http://www.seoegghead.com/
Description: Checks for suspicious links in posts. MAKE SURE TO REPLACE YOUR EMAIL ADDRESS IN THE CODE BELOW -- ALSO ONLY LEAVE THIS ON TO CHECK, THEN TURN IT BACK OFF!!!
Author: Jaimie Sirovich
Version: 0.1
Author URI: http://www.seoegghead.com/
*/
if (true) {
check_posts();
}
function check_posts()
{
global $wpdb, $table_prefix;
$items = $wpdb->get_results("
SELECT post_title, ID, post_name, post_content
FROM {$table_prefix}posts
WHERE TRUE
");
$copy = '';
foreach ($items as $i) {
if (preg_match('#adshelper|softicana#i', $i->post_content)) {
$copy .= $i->ID . ' ' . "IS SUSPICIOUS.\r\n";
} else {
$copy .= $i->ID . ' ' . "OK.\r\n";
}
}
mail('YOUREMAIL@ADDRESS.com', 'test', $copy);
}
?>












October 31st, 2007 at 2:18 pm
[...] writing a quick-and-dirty WordPress plugin to scan your blog for the signature of the HTML-tainting. Install it. It will email you with the [...]
October 31st, 2007 at 4:58 pm
[...] has released the plugin as promised which can be viewed HERE. Unfortunately the plugin has not given any clues as to how the hack was achieved. The plugin [...]