Kro0oz

dork bing.com

Aug 22nd, 2015
780
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.44 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3.  ~ c0d3d by Kro0oz ~
  4.  
  5. use LWP::UserAgent;
  6. use HTTP::Request::Common qw(GET);
  7. $ag = LWP::UserAgent->new();
  8. $ag->agent("Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010801");
  9. $ag->timeout(10);
  10.  
  11. chomp(my $dork = $ARGV[0]);
  12. system "Title searching = $*******************************";
  13. for ($i = 1; $i <= 10000; $i+=10){
  14. $url = "http://www.bing.com/************************************************&filt=all&first=$i&FORM=PERE";
  15. $resp = $ag->request(HTTP::Request->new(GET => $url));
  16. $rrs = $resp->content;
  17.  
  18. while($rrs =~ m/<a href=\"?http:\/\/(.*?)\//g){
  19. $link = $1;
  20. if ( $link !~ /overture|msn|live|bing|yahoo|duckduckgo|google|yahoo|microsof/){
  21. if ($link !~ /^http:/){$link = 'http://' . "$link" . '/';}
  22. if($link !~ /\"|\?|\=|index\.php/){
  23. print "\n\t $link";
  24. push(@resul,$link);}} }
  25.  
  26. while($rrs =~ m/<a href=\"?http:\/\/(.*?[\/].*?)\//g){
  27. $link = $1;
  28. if ( $link !~ /overture|msn|live|bing|yahoo|duckduckgo|google|yahoo|microsof/){
  29. if ($link !~ /^http:/){$link = 'http://' . "$link" . '/';}
  30. if($link !~ /\"|\?|\=|index\.php/){
  31. print "\n\t $link";
  32. push(@resul,$link);}} }
  33.  
  34. if ($rrs !~ m/class=\"sb_pagN\"/g){
  35. $total = $#resul+1;
  36. open(TXTS,"<targets.txt"); chomp(@ar = <TXTS>); close(TXTS); push(@resul,@ar);
  37. open (TXT,">targets.txt");
  38. foreach(@resul){$c{$_}++;next if $c{$_} > 1;print TXT "$_\n";push(@arq,$_);}
  39. close(TXT);
  40. $arq=$#arq+1;
  41. print "\n\n Total Result $total , total in file $arq\n"; exit; }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment