Advertisement
Kyfx

Dork Server Scanner bY Golden-Hacker Thx bro :D <3

Jul 5th, 2015
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. <?php
  2.  
  3. //thank UzunDz
  4. //thank Sec4ever
  5.  
  6. echo"\n
  7. [*]-----------------------------------------------------------------------[*]
  8. _____ _ _ _ _ _
  9. / ____| | | | | | | | | | |
  10. | | __ ___ | | __| | ___ _ __ ______| |__| | __ _ ___| | _____ _ __
  11. | | |_ |/ _ \| |/ _` |/ _ \ '_ \______| __ |/ _` |/ __| |/ / _ \ '__|
  12. | |__| | (_) | | (_| | __/ | | | | | | | (_| | (__| < __/ |
  13. \_____|\___/|_|\__,_|\___|_| |_| |_| |_|\__,_|\___|_|\_\___|_|
  14.  
  15. [*]-----------------------------------------------------------------------[*]
  16. [+] Script Name : Dork Server Scanner
  17. [+] Version : 1.0
  18. [+] Programed By : Golden-Hacker
  19. [+] Email : [email protected] & http://Fb.com/mrm0hm3d
  20. [+] Thank For : Sec4ever & UzunDz
  21. [+] EX : Php Name.php IP Dork :)
  22. [*]-----------------------------------------------------------------------[*]
  23. \n";
  24.  
  25. error_reporting(0);
  26. $ip = $argv[1];
  27. $dork = $argv[2];
  28. echo"\n\t\t Start Scanning ip: $ip $dork ...\n";
  29. //print_r($sites);
  30. set_time_limit(0);
  31. $jo = "All Site $dork :)";
  32. $sites = array_map("site", bing("ip:$ip $dork"));
  33. echo implode("\r\nwww.",$sites)."\r\n", $jo;
  34.  
  35. function site($link){
  36. return str_replace("www.","",parse_url($link, PHP_URL_HOST));
  37. }
  38.  
  39. function bing($what){
  40. for($i = 1; $i <= 2000; $i += 10){
  41. $ch = curl_init();
  42. curl_setopt ($ch, CURLOPT_URL, "http://www.bing.com/search?q=".urlencode($what)."&&first=".$i."&FORM=PERE");
  43. curl_setopt ($ch, CURLOPT_USERAGENT, "msnbot/1.0 (+http://search.msn.com/msnbot.htm)");
  44. curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);
  45. curl_setopt ($ch, CURLOPT_COOKIEFILE,getcwd().'/log.txt');
  46. curl_setopt ($ch, CURLOPT_COOKIEJAR, getcwd().'/log.txt');
  47. curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
  48. curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
  49. $data = curl_exec($ch);
  50. preg_match_all('#;a=(.*?)" h="#',$data, $links);
  51. foreach($links[1] as $link){
  52. $allLinks[] = $link;
  53. }
  54. if(!preg_match('#"sw_next"#',$data)) break;
  55. }
  56.  
  57. if(!empty($allLinks) && is_array($allLinks)){
  58. return array_unique(array_map("urldecode", $allLinks));
  59. }
  60. }
  61. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement