Advertisement
kkDav1337

Popular Bing Dorker kkBing 2017

Jun 4th, 2017
2,847
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.44 KB | None | 0 0
  1. <?php
  2. set_time_limit(0);
  3.  
  4. // Soon i will start project on big Dorker so stay tune with my pastebin -> https://pastebin.com/u/kkDav1337
  5. // Next Feature: Perl,Python and Bash Dorkers
  6. // Working to get pure results
  7. // Usage: php dork.php "your dork here"
  8. // Example Usage: php dork.php kkk1337
  9. // Okey lets start
  10.  
  11. // ██╗  ██╗██╗  ██╗██████╗ ██╗███╗   ██╗ ██████╗
  12. // ██║ ██╔╝██║ ██╔╝██╔══██╗██║████╗  ██║██╔════╝
  13. // █████╔╝ █████╔╝ ██████╔╝██║██╔██╗ ██║██║  ███╗
  14. // ██╔═██╗ ██╔═██╗ ██╔══██╗██║██║╚██╗██║██║   ██║
  15. // ██║  ██╗██║  ██╗██████╔╝██║██║ ╚████║╚██████╔╝
  16. // ╚═╝  ╚═╝╚═╝  ╚═╝╚═════╝ ╚═╝╚═╝  ╚═══╝ ╚═════╝
  17.                                              
  18. // Please safe my rights of kkBing
  19. // Contact me (e-mail): kkk1337@mail.com
  20. // Visit Blog: umbrella-security.blogspot.com
  21. // Facebook: m.facebook.com/Official1337
  22.                                              
  23. function getsource($url) {
  24.     $curl = curl_init($url);
  25.     curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  26.     $content = curl_exec($curl);
  27.     curl_close($curl);
  28.     return $content;
  29. }
  30. $do = urlencode($argv[1]);
  31. if(isset($argv[1])) {
  32.     $npage = 1;
  33.     $npages = 30000;
  34.     $allLinks = array();
  35.     $lll = array();
  36.     while($npage <= $npages) {
  37.         $x = getsource("http://www.bing.com/search?q=".$do."&first=".$npage);
  38.         if($x) {
  39.             preg_match_all('#<h2><a href="(.*?)" h="ID#', $x, $findlink);
  40.             foreach ($findlink[1] as $fl) array_push($allLinks, $fl);
  41.             $npage = $npage + 10;
  42.             if (preg_match("(first=" . $npage . "&amp)siU", $x, $linksuiv) == 0) break;
  43.         } else break;
  44.     }
  45.     $URLs = array();
  46.     foreach($allLinks as $url){
  47.         $exp = explode("/", $url);
  48.         $URLs[] = $exp[2];
  49.     }
  50.     $array = array_filter($URLs);
  51.     $array = array_unique($array);
  52.     $sss = count(array_unique($array));
  53.     foreach($array as $domain) {
  54.         echo "http://$domain/\n";
  55.         $file = fopen("done.txt","a");
  56.         fwrite($file,$domain. "\r\n");
  57.         fclose($file);
  58.     }
  59. }
  60. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement