Advertisement
Googleinurl

VAMPIRO MAIL INURL 1.0

Sep 7th, 2012
618
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.88 KB | None | 0 0
  1. #!/usr/bin/perl
  2. #VAMPIRO MAIL INURL 1.0
  3. #Acesse: www.inurl.com.br
  4.  
  5. use strict;
  6. use warnings;
  7. use feature 'say';
  8. use LWP::Simple 'get';
  9. use URI;    
  10.  
  11.     sub extrair(){
  12.     system(($^O == 'linux') ? 'reset':'cls');
  13.    
  14.     my $url = URI->new($ARGV[0]);
  15.     print "[URL]: Baixar os emails: ".$url."\n";
  16.     print "Nome arquvio pra salvar os emails:\n";
  17.     chomp(my $file =  <STDIN>);    
  18.     open(my $arq, '>'.$file.$url->host().'-EMAIL.txt');
  19.     system(($^O == 'linux') ? 'reset':'cls');
  20.  
  21.     print "Extraindo...\n";
  22.     my $link = $ARGV[0] if (defined($ARGV[0])) || die "[-] Parâmetro inválido.\n";
  23.     unless($link =~ /^http.?/i)
  24.     {
  25.         print "[X] URL inválida!\n";
  26.         exit 1;
  27.     };
  28.     $_ = get($link) || die "$!.\n";        
  29.     say $arq $1 while m/([\w]+\@[\w\.]+)/sg;      
  30.     close($arq);
  31.     say "Finalizado com sucesso!.\n";
  32. }
  33. &extrair();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement