Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- set_time_limit(0);
- // Soon i will start project on big Dorker so stay tune with my pastebin -> https://pastebin.com/u/kkDav1337
- // Next Feature: Perl,Python and Bash Dorkers
- // Working to get pure results
- // Usage: php dork.php "your dork here"
- // Example Usage: php dork.php kkk1337
- // Okey lets start
- // ██╗ ██╗██╗ ██╗██████╗ ██╗███╗ ██╗ ██████╗
- // ██║ ██╔╝██║ ██╔╝██╔══██╗██║████╗ ██║██╔════╝
- // █████╔╝ █████╔╝ ██████╔╝██║██╔██╗ ██║██║ ███╗
- // ██╔═██╗ ██╔═██╗ ██╔══██╗██║██║╚██╗██║██║ ██║
- // ██║ ██╗██║ ██╗██████╔╝██║██║ ╚████║╚██████╔╝
- // ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝
- // Please safe my rights of kkBing
- // Contact me (e-mail): kkk1337@mail.com
- // Visit Blog: umbrella-security.blogspot.com
- // Facebook: m.facebook.com/Official1337
- function getsource($url) {
- $curl = curl_init($url);
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
- $content = curl_exec($curl);
- curl_close($curl);
- return $content;
- }
- $do = urlencode($argv[1]);
- if(isset($argv[1])) {
- $npage = 1;
- $npages = 30000;
- $allLinks = array();
- $lll = array();
- while($npage <= $npages) {
- $x = getsource("http://www.bing.com/search?q=".$do."&first=".$npage);
- if($x) {
- preg_match_all('#<h2><a href="(.*?)" h="ID#', $x, $findlink);
- foreach ($findlink[1] as $fl) array_push($allLinks, $fl);
- $npage = $npage + 10;
- if (preg_match("(first=" . $npage . "&)siU", $x, $linksuiv) == 0) break;
- } else break;
- }
- $URLs = array();
- foreach($allLinks as $url){
- $exp = explode("/", $url);
- $URLs[] = $exp[2];
- }
- $array = array_filter($URLs);
- $array = array_unique($array);
- $sss = count(array_unique($array));
- foreach($array as $domain) {
- echo "http://$domain/\n";
- $file = fopen("done.txt","a");
- fwrite($file,$domain. "\r\n");
- fclose($file);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement