Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Having problems with website after being hit by malicious code.

Discussion in 'Misc WordPress Requests' started by denbuzz, Nov 24, 2017.

  1. denbuzz

    Guest

    Having problems with website after being hit by malicious code., by denbuzz

    Hi Guys,

    Recently my site has been infected by malicious codes and I have tried clearing them up. I am using Siteground and they gave me a list of malicious codes to clean up. I tried my best and only know how to do minor deletion of suspicious strings. After doing that, I have tried to access my site after it is restored. So it went well but now i have a string of codes on the top of my website and I am not sure what went wrong and what to do. Would appreciate any help on decoding the strings of codes and pointing me in the right direction on what to do.

    Here is the link: http://www.action-peek.com

    and the string of codes
    /** * Functions.php – file contains main functions for plugin */ /** * Everything starts here! * Function called on WP hook template_redirect */ function scs_template_redirect($template) { global $scs_options; $scs_options = scs_get_option(); if ( $scs_options[‘logged_in_permission’] ) { scs_handle_template($scs_options); } } /** * Get the options of plugin; if not exists, it creates them */ function scs_get_option() { $option = get_option( basename(dirname(__FILE__)) ); if ( !$option ) { $option = array( ‘state’ => ‘normal’, ‘logged_in_permission’ => true ); add_option(basename(dirname(__FILE__)), $option); } return $option; } /** * Update the plugin’s options */ function scs_update_option($data) { return update_option(basename(dirname(__FILE__)), $data); } /** * Seeks for themes and fills the global array */ function scs_get_themes() { global $scs_themes; $scs_themes = array(); $dir = dirname(__FILE__).’/’.SCS_THEMES_DIR.’/’; if ($handle = opendir($dir)) { while (false !== ($file = readdir($handle))) { if ($file != “.” && $file != “..” && !is_file($file) && file_exists($dir.$file.’/index.php’) ) { $scs_themes[] = ucfirst($file); } } closedir($handle); } return true; } /** * Handle the name of template that should be loaded */ function scs_handle_template($option) { $dir = get_template_directory().’/’; /* only guests should see coming soon */ if ( !is_user_logged_in() ) { switch ( $option[‘state’] ) { case ‘coming-soon’: if ( file_exists($dir.’coming-soon.php’) ) { include_once $dir.’coming-soon.php’; exit(); } else { /* load selected theme */ if ( $option[‘expiry_date’] ) { list( $date,$time ) = explode( ‘|’, $option[‘expiry_date’] ); list( $month, $day, $year ) = explode( ‘.’, $date ); list( $hour, $minute, $second ) = explode ( ‘:’, $time ); $timestamp = mktime( $hour, $minute, $second, $month, $day, $year ); /* if page should be opened now, return true and break function */ if ( time() > $timestamp ) { return true; } } $theme = $option[‘active_theme’]; $theme_dir = dirname( __FILE__ ) . ‘/’ . SCS_THEMES_DIR . ‘/’ . $theme . ‘/’; if ( file_exists( $theme_dir . ‘index.php’ ) ) { scs_prepare_template_vars(); include_once $theme_dir . ‘index.php’; exit(); } } break; } } } /** * Prepares public (global) vars for theme files */ function scs_prepare_template_vars() { global $scs_theme, $scs_options; $scs_theme = $scs_options[‘theme_options’]; return true; } ?>
    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘scs_template_redirect’ not found or invalid function name in /home/amricco1/public_html/action-peek.com/wp-includes/class-wp-hook.php on line 298

    Thank you very much in advance!

    Having problems with website after being hit by malicious code.
     
    #1

Share This Page

Web Hosting