Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/perl
- # Dont change rights |
- use LWP::UserAgent;
- use HTTP::Request::Common qw(GET);
- $ag = LWP::UserAgent->new();
- $ag->agent("Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010801");
- $ag->timeout(10);
- chomp(my $dork = $ARGV[0]);
- print "Bing Dorker By ava - 2017\n";
- for ($i = 1; $i <= 2000; $i+=10){
- $url = "http://www.bing.com/search?q=$dork&filt=all&first=$i&FORM=PERE";
- $resp = $ag->request(HTTP::Request->new(GET => $url));
- $rrs = $resp->content;
- while($rrs =~ m/<a href=\"?http:\/\/(.*?)\//g){
- $link = $1;
- if ( $link !~ /overture|msn|live|bing|yahoo|duckduckgo|google|yahoo|microsof/)
- {
- if ($link !~ /^http:/)
- {
- $link = 'http://' . "$link" . '/';
- }
- if($link !~ /\"|\?|\=|index\.php/){
- if (! grep (/$link/,@result))
- {
- print "$link\n";
- open(save, '>>sites.txt');
- print save "$link\n";
- close(save);
- push(@result,$link);
- }
- }
- }
- }
- if ($rrs !~ m/class=\"sb_pagN\"/g){
- exit;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement