m-a_labz

Avaribale domain checker

Sep 9th, 2013
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.77 KB | None | 0 0
  1. #!/usr/bin/perl
  2. # idea by SoUiLaHxxx_Dz
  3. use HTTP::Request;
  4. use LWP::Simple;
  5. $|=1;
  6. print '[+] Avaribale domain checker';
  7. print "\n[+] Enter Domains File : ";
  8. $host=<STDIN>;
  9. chomp($host);
  10. open (tt, "<$host") || die "[-] Can't open Domains List !";
  11. my @tt = <tt>;
  12. close tt;
  13. foreach $domain (@tt)
  14. {
  15. chomp $domain;
  16. $url = "http://www.checkdomain.com/cgi-bin/checkdomain.pl?domain=".$domain ;
  17. $request = HTTP::Request->new(GET=>$url);
  18. $useragent = LWP::UserAgent->new();
  19. $useragent->timeout(5);
  20. $response = $useragent->request($request);
  21. if ($response->content=~m/is still available!/g)
  22. {
  23. print "[.] Avariable => $domain\n";
  24. open(BEN,">>avariable-domains.txt");
  25. print BEN "$domain\n";
  26. close(BEN);
  27. } else {
  28. print "[.] $domain Has been Registered \n";
  29. }
  30. next;
  31. }
Add Comment
Please, Sign In to add comment