Advertisement
dravatar

Untitled

May 7th, 2016
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. #!/usr/bin/perl
  2. # Dont change rights |
  3. use LWP::UserAgent;
  4. use HTTP::Request::Common qw(GET);
  5. $ag = LWP::UserAgent->new();
  6. $ag->agent("Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010801");
  7. $ag->timeout(10);
  8.  
  9. chomp(my $dork = $ARGV[0]);
  10.  
  11.  
  12. print "Bing Dorker By ava - 2017\n";
  13.  
  14.  
  15. for ($i = 1; $i <= 2000; $i+=10){
  16.  
  17. $url = "http://www.bing.com/search?q=$dork&filt=all&first=$i&FORM=PERE";
  18. $resp = $ag->request(HTTP::Request->new(GET => $url));
  19. $rrs = $resp->content;
  20.  
  21. while($rrs =~ m/<a href=\"?http:\/\/(.*?)\//g){
  22. $link = $1;
  23. if ( $link !~ /overture|msn|live|bing|yahoo|duckduckgo|google|yahoo|microsof/)
  24. {
  25. if ($link !~ /^http:/)
  26. {
  27. $link = 'http://' . "$link" . '/';
  28. }
  29.  
  30.  
  31.  
  32. if($link !~ /\"|\?|\=|index\.php/){
  33. if (! grep (/$link/,@result))
  34. {
  35. print "$link\n";
  36. open(save, '>>sites.txt');
  37. print save "$link\n";
  38. close(save);
  39. push(@result,$link);
  40. }
  41. }
  42. }
  43. }
  44. if ($rrs !~ m/class=\"sb_pagN\"/g){
  45. exit;
  46. }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement