Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //thank UzunDz
- //thank Sec4ever
- echo"\n
- [*]-----------------------------------------------------------------------[*]
- _____ _ _ _ _ _
- / ____| | | | | | | | | | |
- | | __ ___ | | __| | ___ _ __ ______| |__| | __ _ ___| | _____ _ __
- | | |_ |/ _ \| |/ _` |/ _ \ '_ \______| __ |/ _` |/ __| |/ / _ \ '__|
- | |__| | (_) | | (_| | __/ | | | | | | | (_| | (__| < __/ |
- \_____|\___/|_|\__,_|\___|_| |_| |_| |_|\__,_|\___|_|\_\___|_|
- [*]-----------------------------------------------------------------------[*]
- [+] Script Name : Dork Server Scanner
- [+] Version : 1.0
- [+] Programed By : Golden-Hacker
- [+] Email : [email protected] & http://Fb.com/mrm0hm3d
- [+] Thank For : Sec4ever & UzunDz
- [+] EX : Php Name.php IP Dork :)
- [*]-----------------------------------------------------------------------[*]
- \n";
- error_reporting(0);
- $ip = $argv[1];
- $dork = $argv[2];
- echo"\n\t\t Start Scanning ip: $ip $dork ...\n";
- //print_r($sites);
- set_time_limit(0);
- $jo = "All Site $dork :)";
- $sites = array_map("site", bing("ip:$ip $dork"));
- echo implode("\r\nwww.",$sites)."\r\n", $jo;
- function site($link){
- return str_replace("www.","",parse_url($link, PHP_URL_HOST));
- }
- function bing($what){
- for($i = 1; $i <= 2000; $i += 10){
- $ch = curl_init();
- curl_setopt ($ch, CURLOPT_URL, "http://www.bing.com/search?q=".urlencode($what)."&&first=".$i."&FORM=PERE");
- curl_setopt ($ch, CURLOPT_USERAGENT, "msnbot/1.0 (+http://search.msn.com/msnbot.htm)");
- curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt ($ch, CURLOPT_COOKIEFILE,getcwd().'/log.txt');
- curl_setopt ($ch, CURLOPT_COOKIEJAR, getcwd().'/log.txt');
- curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
- $data = curl_exec($ch);
- preg_match_all('#;a=(.*?)" h="#',$data, $links);
- foreach($links[1] as $link){
- $allLinks[] = $link;
- }
- if(!preg_match('#"sw_next"#',$data)) break;
- }
- if(!empty($allLinks) && is_array($allLinks)){
- return array_unique(array_map("urldecode", $allLinks));
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement