Sucuri Security - SiteCheck Malware Scanner plugin enables you to scan your WordPress site using Sucuri SiteCheck right in your WordPress dashboard. SiteCheck will check for malware, spam, blacklisting and other security issues like .htaccess redirects, hidden eval code, etc. The best thing about it is it's completely free. You can also scan your site at SiteCheck.Sucuri.net. Author: Sucuri Security Version: 1.2.1 Author URI: http://sucuri.net */ /* No direct access. */ if(!function_exists('add_action')) { exit(0); } define('SUCURISCAN','sucuriscan'); define('SUCURISCAN_VERSION','1.1.7'); define( 'SUCURI_URL',plugin_dir_url( __FILE__ )); /* Requires files. */ //require_once(dirname(__FILE__ ) . '/inc/scripts.php'); add_action( 'admin_enqueue_scripts', 'sucuriscan_admin_script_style_registration', 1 ); function sucuriscan_admin_script_style_registration() { echo ''; } /* sucuri_dir_filepath: * Returns the system filepath to the relevant user uploads * directory for this site. Multisite capable. */ function sucuriscan_dir_filepath($path = '') { $wp_dir_array = wp_upload_dir(); $wp_dir_array['basedir'] = untrailingslashit($wp_dir_array['basedir']); return($wp_dir_array['basedir']."/sucuri/$path"); } /* Starting Sucuri Scan side bar. */ function sucuriscan_menu() { add_menu_page('Sucuri Free', 'Sucuri Free', 'manage_options', 'sucuriscan', 'sucuri_scan_page', SUCURI_URL.'images/menu-icon.png'); add_submenu_page('sucuriscan', 'Sucuri Scanner', 'Sucuri Scanner', 'manage_options', 'sucuriscan', 'sucuri_scan_page'); add_submenu_page('sucuriscan', '1-click Hardening', '1-click Hardening', 'manage_options', 'sucuriscan_hardening', 'sucuriscan_hardening_page'); } /* Sucuri malware scan page. */ function sucuri_scan_page() { $U_ERROR = NULL; if(!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.') ); } if(isset($_POST['wpsucuri-doscan'])) { sucuriscan_print_scan(); return(1); } /* Setting's header. */ echo '
'; echo '
'; sucuriscan_pagestop("SiteCheck Scanner"); echo '
'; echo '
'; echo '
'; echo '
'; echo '
'; echo '

Scan your site for malware using Sucuri SiteCheck right in your WordPress dashboard.

'; echo '
'; echo '
'; ?>

If you have any questions about these checks or this plugin, contact us at support@sucuri.net or visit sucuri.net

180)); if(is_wp_error($myresults)) { print_r($myresults); return; } $res = unserialize($myresults['body']); echo '
'; echo '
'; sucuriscan_pagestop("Sucuri SiteCheck Malware Scanner"); echo '
'; echo '
'; echo '
'; if(!isset($res['MALWARE']['WARN'])) { echo '

  No malware was identified

'; echo "

Malware: No.

"; echo "

Malicious javascript: No.

"; echo "

Malicious iframes: No.

"; echo "

Suspicious redirections (htaccess): No.

"; echo "

Blackhat SEO Spam: No.

"; echo "

Anomaly detection: Clean.

"; } else { echo '

  Site compromised (malware was identified)

'; foreach($res['MALWARE']['WARN'] as $malres) { if(!is_array($malres)) { echo htmlspecialchars($malres); } else { $mwdetails = explode("\n", htmlspecialchars($malres[1])); echo htmlspecialchars($malres[0])."\n
". substr($mwdetails[0], 1)."
\n"; } } echo "
"; } echo 'More details here http://sitecheck.sucuri.net/scanner/?&scan='.home_url().''; echo "
\n"; if(isset($res['BLACKLIST']['WARN'])) { echo '

  Site blacklisted

'; } else { echo '

  Site blacklist-free

'; } foreach($res['BLACKLIST']['INFO'] as $blres) { echo "CLEAN: ".htmlspecialchars($blres[0])." ".htmlspecialchars($blres[1])."
"; } if(isset($res['BLACKLIST']['WARN'])) { foreach($res['BLACKLIST']['WARN'] as $blres) { echo "WARN: ".htmlspecialchars($blres[0])." ".htmlspecialchars($blres[1])."
"; } } echo "
\n"; global $wp_version; if(strcmp($wp_version, "3.5") >= 0) { echo '

  System info (WordPress upgraded)

'; } else { echo '

  System info (WordPress outdated)

'; } echo "Site: ".$res['SCAN']['SITE'][0]." (".$res['SCAN']['IP'][0].")
\n"; echo "WordPress: $wp_version
\n"; echo "PHP: ".phpversion()."
\n"; foreach($res['SYSTEM']['NOTICE'] as $notres) { if(is_array($notres)) { echo htmlspecialchars($notres[0]). " ".htmlspecialchars($notres[1]); } else { echo htmlspecialchars($notres)."
\n"; } } ?>

If you have any questions about these checks or this plugin, contact us at support@sucuri.net or visit http://sucuri.net


'; echo '
'; sucuriscan_pagestop("Sucuri 1-Click Hardening Options"); echo '
'; if(!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.') ); } include_once("sucuriscan_hardening.php"); sucuriscan_hardening_lib() ?>