Advertisement
rutera

Email grabber

Jan 8th, 2015
622
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.17 KB | None | 0 0
  1. #!/usr/bin/perl -w
  2. # Email grabber!
  3. # Coded by: Saime
  4. # Website: http://saime.biz
  5.  
  6. require LWP::UserAgent;
  7. my $connection = LWP::UserAgent->new;
  8. $connection->agent('Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.4');
  9. $connection->timeout(10);
  10. my $google = "http://www.google.com/search?hl=en&q="; # The search engine , you can add more , or edit it to another like altavista/search[dot]com/etc ...
  11. my @dorks = shift || ("mailto:*\@aol.com"); # Add the dorks here ....
  12. my @pages = shift || ("&start=","&start=10","&start=20","&start=30","&start=40","&start=50","&start=60","&start=70","&start=80","&start=90","&start=100");
  13.  
  14. my $file;
  15. request(0);
  16.  
  17. sub request {
  18.     for(my $count = 0;$count<=$#dorks;$count++){
  19.     my $url = $google . $dorks[$count] . $pages[1] . "$_[0]"; # where the pages is , edit [1] to [2] or [3] , like that up to [10]
  20.     my $response = $connection->get($url);
  21.     my $con = $response->content;
  22.  
  23.     while($con =~ m/<td class="(.*?)"><font size=-1>(.*?)mailto:(\w*\@\w*\.\w*)(.*?)<span class=a>/g){
  24.     my $email = "$3";
  25.     print "[+] Found email: " . "$email\n";
  26. }
  27.       shift(@dorks);
  28.       request(0)
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement