__( 'This may be a script used by hackers to get control of your server!', 'theme-check' ),
'/ShellBOT/' => __( 'This may be a script used by hackers to get control of your server', 'theme-check' ),
'/uname -a/' => __( 'Tells a hacker what operating system your server is running', 'theme-check' ),
'/php \$[a-zA-Z]*=\'as\';/' => __( 'Symptom of the "Pharma Hack" [1]', 'theme-check' ),
'/defined?\(\'wp_class_support/' => __( 'Symptom of the "Pharma Hack" [1]', 'theme-check' ),
);
foreach ( $php_files as $php_key => $phpfile ) {
foreach ( $checks as $key => $check ) {
checkcount();
if ( preg_match( $key, $phpfile, $matches ) ) {
$filename = tc_filename( $php_key );
$error = $matches[0];
$grep = tc_grep( $error, $php_key );
$this->error[] = sprintf(''. __( 'WARNING', 'theme-check') . ': %1$s %2$s%3$s', $filename, $check, $grep );
$ret = false;
}
}
}
return $ret;
}
function getError() { return $this->error; }
}
$themechecks[] = new WormCheck;