diff --git a/sc.php b/sc.php index 598a49e..09f1569 100644 --- a/sc.php +++ b/sc.php @@ -510,84 +510,7 @@ system($GLOBALS["findcmd"].' -type f -perm 0000 -exec ls -al'); echo "Finding All Directories With Chmod Set To 0000

"; system($GLOBALS["findcmd"].' -type d -perm 0000 -exec ls -al'); } - /* -function sucuri() -{ - $myresults = wp_remote_get("http://sitecheck.sucuri.net/scanner/?serialized&fromwp&scan=".home_url(), array("timeout" => 180)); - if(is_wp_error($myresults)) - { - print_r($myresults); - return; - } - - - $res = unserialize($myresults['body']); - - echo '
'; - echo '

Sucuri SiteCheck Malware Scanner

'; - - 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])."
"; - } - } - */ function trimblanklines($str) { return preg_replace('`\A[ \t]*\r?\n|\r?\n[ \t]*\Z`','',$str); }