Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- auto bingrabber with mass dork!
- coded by jjeincovers!
- @2018
- */
- print "
- ______ _____ ____ _____ ______
- |_ _ \ |_ _||_ \|_ _|.' ___ |
- | |_) | | | | \ | | / .' \_|
- | __'. | | | |\ \| | | | ____
- _| |__) |_| |_ _| |_\ |_\ `.___] |
- |_______/|_____||_____|\____|`._____.'
- ## MASS BING GRABBER BY JJEINCOVERS! ##\n";
- @set_time_limit(0);
- //error_reporting(0);
- // mass bing grabber @2018 by jjeincovers!
- // usage : php bing.php
- function getsource($url) {
- $curl = curl_init($url);
- curl_setopt($curl, CURLOPT_USERAGENT, "jjeincovers/1.1");
- //curl_setopt($ch, CURLOPT_VERBOSE, TRUE);
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
- $content = curl_exec($curl);
- curl_close($curl);
- return $content;
- }
- $dork=file_get_contents("dork.txt");
- $edork=explode("\r\n",$dork);
- foreach($edork as $dorklist){
- $npage = 1;
- $npages = 30000;
- $allLinks = array();
- $incovers = array();
- while($npage <= $npages) {
- $x = getsource("http://www.bing.com/search?q=".urlencode($dorklist)."&first=" . $npage."&FORM=PERE4");
- 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));
- echo"\n Dork : ". $dorklist.'';
- echo"\n Total : ". $sss.' site';
- foreach ($array as $domain) {
- $op=@fopen('bingresult.txt','a+');
- $lol="\nhttp://".$domain.'/';
- fwrite($op,$lol);
- fclose($op);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement