Advertisement
tobitaz

massshellscan.php

Jul 22nd, 2013 (edited)
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.19 KB | None | 0 0
  1.               <?php
  2.  
  3.  
  4. echo '<form action="" method="post">
  5. <font class="os">Url:</font><br /><textarea name="urljom" cols="30" rows="30">http://targetsite.com</textarea>
  6. <br /><button type="submit" class="rbtn">SCAN</button>
  7. </form>';
  8.  
  9.  
  10.  
  11. $urljom = $_POST["urljom"];
  12.  
  13.  
  14.   $masslis = preg_split('/(\r?\n)+/', $urljom);
  15.  
  16.  
  17. if($urljom != null)
  18. {
  19.  
  20.  
  21.  
  22. foreach($masslis as $mas)
  23. {
  24.  
  25.  
  26. echo "[".$mas."]<br />Loading";
  27.  
  28.  
  29. if($urljom != null)
  30. {
  31. $comx = file_get_contents("http://pastebin.com/raw.php?i=gv0jP0jd");
  32.  
  33.   $arrayjom = preg_split('/(\r?\n)+/', $comx);
  34.  
  35.  
  36. foreach($arrayjom as $allcom)
  37. {
  38. echo ".";
  39.  $tazjom = curl_init($mas."/".$allcom);
  40.  
  41. curl_setopt($tazjom, CURLOPT_RETURNTRANSFER, true);
  42. curl_setopt($tazjom, CURLOPT_TIMEOUT, 5);
  43.  
  44.  
  45. $res = curl_exec($tazjom);
  46. curl_close($tazjom);
  47.  
  48. if($res === false)
  49. {}
  50. else
  51. {
  52.  
  53.  
  54. //check
  55.  
  56.  
  57.  
  58.        $che = strripos($res, "403");
  59.    $che2 = strripos($res, "404");
  60.    $che3 = strripos($res, "method not allowed");
  61.    $che4 = strripos($res, "Webmaster please contact");
  62.    $che5 = strripos($res, "Not found");
  63.    $che6 = strripos($res, "Account Suspended");
  64.  
  65.  
  66.  
  67.         if($che or $che2 or $che3 or $che4 or $che5 or $che6 > 1)
  68.     {
  69.  
  70. }
  71. else
  72. {
  73.                        $cr = curl_init();
  74.             curl_setopt($cr, CURLOPT_URL, $mas."/".$allcom);    
  75.                   curl_setopt($cr, CURLOPT_RETURNTRANSFER, 1);
  76.                 curl_setopt($cr, CURLOPT_TIMEOUT, 5);
  77.                   $respons = curl_exec($cr);
  78.                       $errno = curl_errno($cr);
  79.                       $error = curl_error($cr);
  80.                $response = $response;
  81.                         $info = curl_getinfo($cr);
  82.                       $chek = $info['http_code'];
  83.                         curl_close($cr);
  84.  
  85.    
  86.                   if($chek < 300)
  87.                        {
  88.            echo "<br /><a href='".$mas."/".$allcom."'>".$mas."/".$allcom."</a>:[<font style='color:red;'>mungkin shell ni]</font><br />Loading";
  89.                       }
  90.                      else
  91.                       {
  92.                      echo ".";
  93.                      }
  94. }
  95.  
  96.  
  97. }
  98. }
  99. }
  100.  
  101.  
  102.  
  103. echo "----------------------------------<br />";
  104.  
  105.  
  106.  
  107.  
  108. }
  109.  
  110.  
  111.  
  112.  
  113. }
  114.  
  115.  
  116. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement